type Listener = (newState: S) => void; export interface ISubscription { __updateState?: (nextState: any, forceUpdate?: boolean) => void; subscribe: (fn: Listener) => () => void; unsubscribe: (fn: Listener) => void; listener: Set>; state: S; updateState: (nextState: S | any, forceUpdate?: boolean) => void; [key: string]: any; } export interface IReactive { subscribe: (fn: Listener) => void; unsubscribe: (fn: Listener) => void; listener: Set>; store: S; } export declare function createSubscription(initialState?: S): ISubscription; export interface IStateUpdater { changed?: any; setState: (newState: any, callback?: (newState: S) => void) => void; state: S; } export interface IStateReduceUpdater { dispatch: (p: any) => void; state: S; } export declare function useReducerSubscription(subscriber: ISubscription, reducer?: any): IStateReduceUpdater; export declare function useSubscription>(subscriber: ISubscription, pick?: P): IStateUpdater; export declare const createReactive: (initialState: S) => IReactive; export declare const useReactive: (reactiveStore: IReactive, pick?: Array) => S; export declare const useSyncStore: (subscription: ISubscription, getServerSnapshot?: (() => S) | undefined) => { state: S; subscription: ISubscription; }; export {}; //# sourceMappingURL=index.d.ts.map