import type { Resource, ResourceProps } from "./resource.js"; import type { Scope } from "./scope.js"; export type State = { status: `creating` | `created` | `updating` | `updated` | `deleting` | `deleted`; kind: Kind; id: string; fqn: string; seq: number; data: Record; props: Props; oldProps?: Props; output: Out; }; export type StateStoreType = (scope: Scope) => StateStore; export interface StateStore { /** Initialize the state container if one is required */ init?(): Promise; /** Delete the state container if one exists */ deinit?(): Promise; /** List all resources in the given stage. */ list(): Promise; /** Return the number of items let in this store */ count(): Promise; get(key: string): Promise; getBatch(ids: string[]): Promise>; all(): Promise>; set(key: string, value: State): Promise; delete(key: string): Promise; } //# sourceMappingURL=state.d.ts.map