import { Sum } from "../../main"; import { BasicUpdater, Updater } from "../fun/domains/updater/state"; export type DirtyStatus = "dirty" | "not dirty" | "dirty but being processed"; export type DebouncedStatus = "waiting for dirty" | "just detected dirty, starting processing" | "processing finished" | "state was still dirty but being processed, resetting to not dirty" | "processing shortcircuited" | "state was changed underwater back to dirty, leaving the dirty flag alone" | "inner call failed with transient failure"; export type Debounced = Value & { lastUpdated: number; dirty: DirtyStatus; status: Sum; }; export declare const Debounced: { Default: (initialValue: v, debug?: boolean) => Debounced; Updaters: { Core: { status: (_: BasicUpdater) => Updater>; dirty: (_: BasicUpdater) => Updater>; lastUpdated: (_: BasicUpdater) => Updater>; valueWithoutDebouncing: (_: BasicUpdater) => Updater>; value: (_: BasicUpdater) => Updater>; }; Template: { value: (_: BasicUpdater) => Updater>; }; }; Operations: { shouldCoroutineRun: (_: Debounced) => boolean; }; }; //# sourceMappingURL=state.d.ts.map