/** * useLocalStorage * * A hook to persist state in localStorage. * * @param key The key to use when storing the state in localStorage. * @param initialValue The initial value of the state to be stored. * @param options An object with the following optional properties: * - serialize: A function to serialize the state. Defaults to JSON.stringify. * - deserialize: A function to deserialize the state. Defaults to JSON.parse. * @returns A tuple with the stored value and a function to update the stored value. */ export declare function useLocalStorage(key: string, initialValue: T, options?: { serialize?: (value: T) => string; deserialize?: (value: string) => T; }): readonly [T, (value: T | ((prev: T) => T)) => void];