import { C8jsResponse } from "./util/request"; export declare const MIME_JSON: RegExp; export type LoadBalancingStrategy = "NONE" | "ROUND_ROBIN" | "ONE_RANDOM"; export type RequestOptions = { host?: number; method?: string; body?: any; expectBinary?: boolean; isBinary?: boolean; headers?: { [key: string]: string; }; absolutePath?: boolean; basePath?: string; path?: string; qs?: string | { [key: string]: any; }; }; export type Config = string | string[] | Partial<{ url: string | string[]; fabricName: string; apiKey: string; token: string; isAbsolute: boolean; c8Version: number; loadBalancingStrategy: LoadBalancingStrategy; maxRetries: false | number; agent: any; agentOptions: { [key: string]: any; }; headers: { [key: string]: string; }; }>; export declare class Connection { private _activeTasks; private _agent?; private _agentOptions; private _c8Version; private _fabricName; private _tenantName; private _headers; private _loadBalancingStrategy; private _useFailOver; private _shouldRetry; private _maxRetries; private _maxTasks; private _queue; private _hosts; private _urls; private _activeHost; private _resultCallback; constructor(config?: Config); private get _fabricPath(); private _runQueue; private _buildUrl; private _sanitizeEndpointUrl; addToHostList(urls: string | string[]): number[]; get c8Major(): number; getFabricName(): string | false; getTenantName(): string | false; getUrls(): string[]; getActiveHost(): number; setFabricName(fabricName: string): void; setTenantName(tenantName: string): void; setHeader(key: string, value: string): void; setResultListener(callback: ((res: any) => void) | undefined): void; close(): void; extractTenantName(apiKey: string): string; request({ host, method, body, expectBinary, isBinary, headers, ...urlInfo }: RequestOptions, getter?: (res: C8jsResponse) => T): Promise; } //# sourceMappingURL=connection.d.ts.map