import { AxiosRequestConfig } from 'axios'; import { Socket } from 'phoenix'; type ApiClientOptions = { host: string; apiKey: string; userToken: string | undefined; branch?: string; /** Automatically disconnect the socket when the page is hidden and reconnect when visible. Defaults to `true`. */ disconnectOnPageHidden?: boolean; }; export interface ApiResponse { error?: any; body?: any; statusCode: "ok" | "error"; status: number; } declare class ApiClient { private host; private apiKey; private userToken; private branch; private axiosClient; socket: Socket | undefined; private pageVisibility; constructor(options: ApiClientOptions); makeRequest(req: AxiosRequestConfig): Promise; teardown(): void; private canRetryRequest; private getKnockClientHeader; } export default ApiClient; //# sourceMappingURL=api.d.ts.map