import { ComponentStorage } from '../helpers/component-storage.js'; import { MaybeAccessor } from '../types.js'; export interface WithStateRestore { /** * A storage the component could use to store its data. */ storage: ComponentStorage; /** * True if the current page is reloaded. */ isPageReload: MaybeAccessor; } export declare function withStateRestore(storageName: string): (obj: O) => O & WithStateRestore;