/** * Factory function for creating storage hooks * Supports both localStorage and sessionStorage with SSR safety */ import type { StorageConfig, StorageHookResult } from './types.js'; /** * Create a storage hook for either localStorage or sessionStorage * * @template T - The type of the stored value * @param config - Storage configuration (type and key) * @param initialValue - Initial value if key doesn't exist in storage * @returns Tuple of [storedValue, setValue] * * @internal This is an internal factory function. Use useLocalStorage or useSessionStorage instead. * * @example * ```tsx * // This is for internal use. Use useLocalStorage instead: * const [value, setValue] = useLocalStorage('key', 'default'); * ``` */ declare function useStorageHook(config: StorageConfig, initialValue: T): StorageHookResult; export declare const createStorageHook: typeof useStorageHook; export {}; //# sourceMappingURL=createStorageHook.d.ts.map