/// declare class Store { private state; private listeners; constructor(initialState: T); getState(): T; setState(partialState: Partial | ((prevState: T) => Partial), callback?: (state: T) => void, key?: string): void; subscribe(listener: () => void): () => void; private notify; getLatestState(): T; } interface ProviderProps { store: Store; children: React.ReactNode; } export declare function Provider({ store, children, }: ProviderProps): import("react").JSX.Element; export declare function createStore(initialState: T): Store; export type { Store }; export declare function useStore(): [ T, (update: Partial | ((prevState: T) => Partial), callback?: (state: T) => void) => void ];