/** * Like `useState`, but initializing from `localStorage` if available and saving * to `localStorage` everytime the state is changed. * @param key localStorage key. Will be appended to the `react-iframe-bridge-` prefix. * @param initialValue Value to use if the storage is empty. */ export declare function useLocalStorage(key: string, initialValue: ValueType): readonly [ValueType, (value: ValueType) => void]; /** * Save the provided value to `localStorage` everytime it changes. * @param key localStorage key. Will be appended to the `react-iframe-bridge-` prefix. * @param value Value to save. */ export declare function useSaveToLocalStorage(key: string, value: unknown): void; //# sourceMappingURL=local_storage.d.ts.map