import ReactExports from 'react'; import type { ReactNode } from 'react'; import type { StoreApi } from 'zustand'; type UseContextStore> = { (): ExtractState; (selector: (state: ExtractState) => U, equalityFn?: (a: U, b: U) => boolean): U; }; type ExtractState = S extends { getState: () => infer T; } ? T : never; type WithoutCallSignature = { [K in keyof T]: T[K]; }; /** * @deprecated Use `createStore` and `useStore` for context usage */ declare function createContext>(): { Provider: ({ createStore, children, }: { createStore: () => S; children: ReactNode; }) => ReactExports.FunctionComponentElement>; useStore: UseContextStore; useStoreApi: () => WithoutCallSignature; }; export default createContext;