import type { Difference } from 'microdiff'; export type Setter = (value: T, ...rest: R) => void; export type Getter = () => T; export type MaybeGetter = Getter | T; export declare const get: (value: MaybeGetter) => T; type Patch = Difference[]; export declare const applyPatch: (state: T, patch: Patch) => T; export declare const invertPatch: (patch: Patch) => Patch; export {};