import type { Mutate, StateCreator, StoreApi, StoreMutatorIdentifier } from './vanilla'; type ExtractState = S extends { getState: () => infer T; } ? T : never; type ReadonlyStoreApi = Pick, 'getState' | 'subscribe'>; type WithReact> = S & { getServerState?: () => ExtractState; }; export declare function useStore>>(api: S): ExtractState; export declare function useStore>, U>(api: S, selector: (state: ExtractState) => U, equalityFn?: (a: U, b: U) => boolean): U; export type UseBoundStore>> = { (): ExtractState; (selector: (state: ExtractState) => U, equals?: (a: U, b: U) => boolean): U; } & S; type Create = { (initializer: StateCreator): UseBoundStore, Mos>>; (): (initializer: StateCreator) => UseBoundStore, Mos>>; /** * @deprecated Use `useStore` hook to bind store */ >(store: S): UseBoundStore; }; export declare const create: Create; /** * @deprecated Use `import { create } from 'zustand'` */ declare const _default: Create; export default _default;