import { SubscribeOptions, OnConnectionChange } from './types'; export declare const socketClientV2: { subscribe: >(subscription: O, { onDataReceive }: { onDataReceive: (data: O & { data: T; }) => any; }) => () => void; onConnectionChange: (handler: OnConnectionChange) => () => void; /** * Disconnect and drop the shared client (logout). The next `subscribe` builds a fresh socket. */ disconnect: () => void; /** * Reconnect the shared client if it has given up (e.g. an expired session while the tab was * suspended). No-op when there is no client yet, it is connected, or it is already retrying. */ ensureConnected: () => void; }; //# sourceMappingURL=socket-client.v2.d.ts.map