import type { WorkflowDefinitionManifest, WorkflowGraph } from '../domain/definition.js'; export interface WorkflowAuthoringDraft { id: string; workflowName: string; graph: WorkflowGraph; manifest: WorkflowDefinitionManifest; baseRevision: number; createdAtMs: number; updatedAtMs: number; } export interface SaveWorkflowAuthoringDraftInput { id?: string; workflowName: string; graph: WorkflowGraph; manifest?: WorkflowDefinitionManifest; baseRevision?: number; expectedUpdatedAtMs?: number; } export declare class WorkflowDraftStore { private readonly draftsDir; constructor(options?: { userDir?: string; }); list(workflowName?: string): WorkflowAuthoringDraft[]; get(id: string): WorkflowAuthoringDraft | null; save(input: SaveWorkflowAuthoringDraftInput): WorkflowAuthoringDraft; remove(id: string): boolean; private readFile; } export declare class WorkflowDraftConflictError extends Error { readonly currentUpdatedAtMs?: number; constructor(currentUpdatedAtMs?: number); }