import { EventQueueClient } from './EventQueueClient'; import type { UUID } from './UUID'; import type { ClientEvents } from './ClientEvents'; import type { Agent } from './Agent'; import type { ICapResponse } from './interfaces/ICapResponse'; import { AssetType } from '../enums/AssetType'; export declare class Caps { eventQueueClient: EventQueueClient | null; private static readonly CAP_INVOCATION_DELAY_MS; private readonly onGotSeedCap; private gotSeedCap; private capabilities; private readonly clientEvents; private readonly agent; private active; private timeLastCapExecuted; constructor(agent: Agent, seedURL: string, clientEvents: ClientEvents); downloadAsset(uuid: UUID, type: AssetType): Promise; requestPost(capURL: string, data: string | Buffer, contentType: string): Promise<{ status: number; body: string; }>; requestPut(capURL: string, data: string | Buffer, contentType: string): Promise; requestGet(requestURL: string): Promise; requestDelete(requestURL: string): Promise; isCapAvailable(capability: string): Promise; getCapability(capability: string): Promise; capsRequestUpload(capURL: string, data: Buffer): Promise; capsPerformXMLPost(capURL: string, data: any): Promise; capsPerformXMLPut(capURL: string, data: any): Promise; capsPerformXMLGet(capURL: string): Promise; capsPerformGet(capURL: string): Promise; capsGetXML(capability: string | [string, Record]): Promise; capsGetString(capability: string | [string, Record]): Promise; capsPostXML(capability: string | [string, Record], data: any): Promise; capsPutXML(capability: string | [string, Record], data: any): Promise; shutdown(): void; waitForSeedCapability(): Promise; private waitForCapTimeout; }