///
import { ActionEnvironment } from '../internalRpcSchema';
import type { IntervalActionStore, IntervalPageStore } from '../types';
import { Interval, InternalConfig } from '..';
import type { AsyncLocalStorage } from 'async_hooks';
declare let actionLocalStorage: AsyncLocalStorage | undefined;
declare let pageLocalStorage: AsyncLocalStorage | undefined;
export { actionLocalStorage, pageLocalStorage };
export declare function getHttpEndpoint(wsEndpoint: string): string;
export declare const sleep: (ms: number) => Promise;
export default class IntervalClient {
#private;
organization: {
name: string;
slug: string;
} | undefined;
environment: ActionEnvironment | undefined;
constructor(interval: Interval, config: InternalConfig);
get isConnected(): boolean;
handleActionsChange(config?: InternalConfig): void;
listen(): Promise;
private initializeConnection;
respondToRequest(requestId: string): Promise;
immediatelyClose(): void;
safelyClose(): Promise;
declareHost(httpHostId: string): Promise;
ping(): Promise;
/**
* This is used for testing and intentionally non-private.
* Do not use unless you're absolutely sure what you're doing.
*/
protected __dangerousInternalSend(methodName: any, inputs: any): Promise;
}