export declare function useStore(store: { state(): S; subscribe(fn: () => void): () => void; }): S;