export type { StoreVanillaAndHook, StoreVanilla, StoreHookOnly, Create }; import type { StateCreator, StoreApi, StoreMutatorIdentifier } from 'zustand'; /** * The store hook function that is returned by createWrapped */ type StoreHookOnly = { (): T; (selector: (state: T) => U): U; }; /** * Just the store API without the hook functionality */ type StoreVanilla = StoreApi; /** * Combined type used in the React context */ type StoreVanillaAndHook = StoreVanilla & { (): any; (selector: (state: any) => U): U; }; /** * The create function type with support for the key parameter */ type Create = { (initializer: StateCreator): StoreHookOnly; (key: string, initializer: StateCreator): StoreHookOnly; (): (initializer: StateCreator) => StoreHookOnly; (key: string): (initializer: StateCreator) => StoreHookOnly; };