import { AuthStates, States } from 'socketcluster-client/lib/clientsocket.js'; import { StoreAction } from '../actions/index.js'; export interface SocketState { id: string | null; channels: string[]; socketState: States; authState: AuthStates | 'pending'; error: Error | undefined; baseChannel?: string; authToken?: null; } export declare function socket(state: SocketState | undefined, action: StoreAction): SocketState;