import type { MachineDefinition, MachineStore, TransitionCommand } from '../state-machine/types.js'; export type WorkflowKind = 'design-system' | 'canvas' | 'review' | 'ads' | 'product' | 'improve'; export type WorkflowInterruption = 'blocked' | 'waiting_external'; export interface WorkflowState { readonly phase: string; readonly interruption?: { readonly kind: WorkflowInterruption; readonly reason: string; readonly resumePhase: string; }; } export type WorkflowEvent = 'advance' | 'block' | 'wait_external' | 'resume' | 'reject' | 'cancel'; export type WorkflowCommand = TransitionCommand; export declare function workflowDefinition(kind: WorkflowKind): MachineDefinition; export declare function createWorkflowKernel(kind: WorkflowKind, store: MachineStore): { dispatch(command: TransitionCommand): Promise>; };