export type Dict = Record; type RequiredView = { [K in keyof T]-?: Exclude; }; type StateAccess = { [K in keyof T]: T[K] | undefined; } & { required: RequiredView; }; export type InvokeStateInstance = StateAccess & { get(key: K): T[K] | undefined; getOrThrow(key: K, message?: string): Exclude; set(key: K, value: T[K]): InvokeStateInstance; set(patch: Partial): InvokeStateInstance; snapshot(): Readonly>; }; export declare class InvokeState { private constructor(); static create(initial?: Partial): InvokeStateInstance; } export {};