import type { Dispatch, StateUpdater } from 'preact/hooks';
type Serializer<T> = (object: T | undefined) => string;
type Parser<T> = (val: string) => T | undefined;
type Options<T> = Partial<{
    serializer: Serializer<T>;
    parser: Parser<T>;
    syncData: boolean;
}>;
export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?: Options<T>) => [T, Dispatch<StateUpdater<T>>];
export {};
