import type { FieldValues } from './path'; import type { StoreRoot } from './types'; export { createStoreRoot, type StoreOptions }; /** * Configuration options for store creation. */ type StoreOptions = { /** When true, the store only uses memory and does not persist to localStorage */ memoryOnly?: boolean; }; /** * Creates the core store API with path-based methods. * * Uses a Proxy pattern for lazy initialization and caching of methods, * similar to the atom implementation. Methods are only created when first accessed * and then cached for subsequent use. * * @param namespace - Unique identifier for the store * @param defaultValue - Initial state merged with any persisted data * @param options - Configuration options * @returns A proxy object providing both path-based and dynamic property access to the store */ declare function createStoreRoot(namespace: string, defaultValue: T, options?: StoreOptions): StoreRoot;