/** * Workflow presence lifecycle — atomic terminalization coordination * (RD §3 D4c + §4 — slice 4.0.8 presence-lease-graph). * * Workflow init atomically creates a graph + canonical lease + caller * index under one lifecycle lock. Terminalize atomically updates the * terminal graph node, the lease's terminal fields, the caller * index, and emits exactly one observability event. Both transitions * are pure orchestrators — they delegate atomic writes to the graph * store and lease service. */ import { type InitWorkflowInput, type InitWorkflowResult, type TerminalizeWorkflowInput, type TerminalizeWorkflowResult } from './workflow-presence-lifecycle-types.js'; export type { InitWorkflowInput, InitWorkflowResult, TerminalizeWorkflowInput, TerminalizeWorkflowResult, TerminalizeError } from './workflow-presence-lifecycle-types.js'; export declare function initWorkflow(input: InitWorkflowInput): Promise; export declare function terminalizeWorkflow(input: TerminalizeWorkflowInput): Promise; export declare function readWorkflowLease(projectRoot: string, sessionId: string, callerId: string, workflowId: string): import("../skills/presence-lease-types.js").PresenceProjection; export declare function graphFileExists(projectRoot: string, sessionId: string, workflowId: string): boolean; export declare function readGraphFile(projectRoot: string, sessionId: string, workflowId: string): string;