import { SubscribeOptions, OnConnectionChange } from './types';
export declare const socketClientV2: {
    subscribe: <O extends SubscribeOptions = SubscribeOptions, T = Record<string, any>>(subscription: O, { onDataReceive }: {
        onDataReceive: (data: O & {
            data: T;
        }) => any;
    }) => () => void;
    onConnectionChange: (handler: OnConnectionChange) => () => void;
    disconnect: () => void;
};
//# sourceMappingURL=socket-client.v2.d.ts.map