declare class LocalStorage { name: string; constructor(name: string); get(): T | null; set(obj: T): void; remove(): void; } declare function useStoredState(key: string | null, initialState: S | (() => S), isValid?: ((state: S) => boolean) | null): [S, (nextState: S, validate?: boolean) => void, VoidFunction]; export { LocalStorage, useStoredState };