export declare type ConnectionInfo = { url: string; user?: string; password?: string; allowInsecureAuthentication?: boolean; timeout?: number; headers?: { [key: string]: string | number; }; }; export interface OnceBlockable { once(eventName: "block", handler: () => void): void; } export declare type PollOptions = { timeout?: number; floor?: number; ceiling?: number; interval?: number; retryLimit?: number; onceBlock?: OnceBlockable; }; export declare type FetchJsonResponse = { statusCode: number; status: string; headers: { [header: string]: string; }; }; export declare function fetchJson(connection: string | ConnectionInfo, json?: string, processFunc?: (value: any, response: FetchJsonResponse) => any): Promise; export declare function poll(func: () => Promise, options?: PollOptions): Promise;