import { ReactNode } from 'react'; import { DataStore } from '../store'; /** * Hook to access the data store. * * @returns DataStore instance * @throws Error if used outside DataProvider */ export declare function useDataStore(): DataStore; /** * Hook to access the data store (optional). * Returns null if not within provider instead of throwing. * * @returns DataStore instance or null */ export declare function useDataStoreOptional(): DataStore | null; /** * Props for DataProvider. */ export interface DataProviderProps { children: ReactNode; /** Optional initial store (for testing) */ store?: DataStore; } /** * Provider for data context. * Creates a DataStore instance that persists for the lifetime of the provider. */ export declare function DataProvider({ children, store: initialStore }: DataProviderProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=data-context.d.ts.map