import { type FabricWorkflowItemStatusV1 } from "../protocol.js"; import { isWorkflowItemId, WORKFLOW_ITEM_ID_MAX_CHARS } from "./store.js"; export { isWorkflowItemId, WORKFLOW_ITEM_ID_MAX_CHARS }; export declare const WORKFLOW_ITEM_META_MAX_BYTES: number; export interface WorkflowItemTransitionInput { id: string; status: FabricWorkflowItemStatusV1; meta?: Record; } /** * Fail-closed validation for the stable-identity fields of one * `workflow.item` call. The guest input is never mutated: the durable trace * keeps projecting the original arguments, so `meta` never reaches it. */ export declare const validateWorkflowItemInput: (args: Record, defaultId: () => string) => WorkflowItemTransitionInput; type EmitEvent = (channel: string, data: unknown) => void; /** * Per-invocation item status ledger. Emits one host event per status * transition; listeners observe and can never block or fail the program. */ export declare class FabricWorkflowItemTransitions { #private; readonly invocationId: string; readonly emit: EmitEvent | undefined; readonly sessionId?: string | undefined; constructor(invocationId: string, emit: EmitEvent | undefined, sessionId?: string | undefined); /** Matches the activity store's historical `item-` fallback. */ nextDefaultId(): string; record(input: WorkflowItemTransitionInput, label: unknown): void; /** Mirrors the activity store: only running items settle with the run. */ finish(success: boolean): void; } //# sourceMappingURL=workflow-items.d.ts.map