2017-12-13 15:23:50 +00:00
|
|
|
/// <reference types="node" />
|
|
|
|
|
import { Region } from './Region';
|
|
|
|
|
import { EventQueueClient } from './EventQueueClient';
|
|
|
|
|
import { UUID } from './UUID';
|
2017-12-20 17:07:10 +00:00
|
|
|
import { ClientEvents } from './ClientEvents';
|
2017-12-15 19:13:45 +00:00
|
|
|
import { Agent } from './Agent';
|
2018-10-10 10:12:20 +01:00
|
|
|
import { HTTPAssets } from '..';
|
2017-12-13 15:23:50 +00:00
|
|
|
export declare class Caps {
|
|
|
|
|
private region;
|
|
|
|
|
private onGotSeedCap;
|
|
|
|
|
private gotSeedCap;
|
|
|
|
|
private capabilities;
|
|
|
|
|
private clientEvents;
|
2017-12-15 19:13:45 +00:00
|
|
|
private agent;
|
2018-10-09 20:03:28 +01:00
|
|
|
private active;
|
2017-12-13 15:23:50 +00:00
|
|
|
eventQueueClient: EventQueueClient | null;
|
2017-12-15 19:13:45 +00:00
|
|
|
constructor(agent: Agent, region: Region, seedURL: string, clientEvents: ClientEvents);
|
2017-12-13 15:23:50 +00:00
|
|
|
downloadAsset(uuid: UUID, type: HTTPAssets): Promise<Buffer>;
|
|
|
|
|
request(url: string, data: string | Buffer, contentType: string): Promise<string>;
|
|
|
|
|
waitForSeedCapability(): Promise<void>;
|
|
|
|
|
getCapability(capability: string): Promise<string>;
|
|
|
|
|
capsRequestUpload(url: string, data: Buffer): Promise<any>;
|
|
|
|
|
capsRequestXML(capability: string, data: any): Promise<any>;
|
|
|
|
|
shutdown(): void;
|
|
|
|
|
}
|