/** Preflight an existing workflow file before a command evaluates its module. */ import type { WorkflowDefinition } from "../flow/types.ts"; export type WorkflowPreflightResult = { readonly ok: true; readonly workflow: WorkflowDefinition; } | { readonly ok: false; readonly cause?: string; }; /** * Type-check first, then evaluate exactly once. Besides removing command-level duplication, this order * guarantees that semantic TypeScript errors cannot run a workflow module's top-level side effects. */ export declare function loadValidatedWorkflow(options: { readonly filePath: string; readonly projectRoot: string; }): Promise; //# sourceMappingURL=workflow-preflight.d.ts.map