/** * Use a variable stored persistently on local storage. * * @param {string} name the name of the variable in local storage. * @param {T} defaultValue the default value * @param {"local" | "session"} storage the type of storage where to persist the state * @returns {[T | undefined, function (T)]} the current value (undefined until localStorage has been checked + a function to update the value) */ declare function usePersistedState(name: string, defaultValue: T, storage?: 'local' | 'session'): [T | undefined, (value: T) => void]; export default usePersistedState; //# sourceMappingURL=usePersistedState.d.ts.map