import { SocketInstance, ExtractSocketExtraType } from '@hyper-fetch/sockets'; import { UseSocketStateType, UseSocketStateProps } from '..'; export declare const useSocketState: (socket: Socket, { dependencyTracking }: UseSocketStateProps) => readonly [UseSocketStateType, { setData: (data: DataType | null) => void; setExtra: (extra: ExtractSocketExtraType | null) => void; setConnected: (connected: boolean) => void; setConnecting: (connecting: boolean) => void; setTimestamp: (timestamp: number | null) => void; clearState: () => void; }, { onConnected: (callback: VoidFunction) => void; onDisconnected: (callback: VoidFunction) => void; onError: (callback: (event: ErrorType) => void) => void; onConnecting: (callback: VoidFunction) => void; onReconnecting: (callback: (data: { attempts: number; }) => void) => void; onReconnectingFailed: (callback: (data: { attempts: number; }) => void) => void; }, { readonly setRenderKey: (renderKey: keyof UseSocketStateType) => void; }]; //# sourceMappingURL=use-socket-state.hooks.d.ts.map