type SetValue = (value: T | ((value_: T) => T)) => void; /** * Hook that syncs state with localStorage * * @template T - The type of the stored value * @param key - localStorage key * @param initialValue - Initial value if key doesn't exist * @returns Tuple of [storedValue, setValue] * * @example * ```tsx * const Settings = () => { * const [theme, setTheme] = useLocalStorage('theme', 'light'); * return ; * }; * ``` * * @remarks * SSR-safe: This hook safely handles server-side rendering by checking for window availability. * In SSR environments, it returns the initialValue and skips localStorage operations. * Storage events are also safely handled with proper environment checks. */ export declare function useLocalStorage(key: string, initialValue: T): [T, SetValue]; export {}; //# sourceMappingURL=useLocalStorage.d.ts.map