import { InitialState } from './state-adapt.types'; export interface InitialStateGetter { (): State; /** Starts memoization */ activate(): State; /** Stops memoization */ deactivate(): void; } /** Normalizes an {@link InitialState} argument into a function that returns the initial state. {@link InitialStateGetter.activate} captures a value that stays stable until {@link InitialStateGetter.deactivate}. Outside of an activation there is no session for a value to belong to, so each call is an independent, up-to-the-moment read rather than a cached one. */ export declare function createInitialStateGetter(initialState: InitialState): InitialStateGetter;