export declare type StorageObj = Pick; export declare function useInitialState(storage: StorageObj, key: string, defaultState: S): S; export declare function useStorageWriter(storage: StorageObj, key: string, state: S): Error | undefined; export declare function useStorageListener(storage: StorageObj, key: string, defaultState: S, onChange: (newValue: S) => void): void;