/** Resolve workflow definitions recorded in run provenance. */ import type { RunEvent, WorkflowSource } from "../engine/types.ts"; import type { WorkflowDefinition } from "../flow/types.ts"; import { type WorkflowPreflightResult } from "./workflow-preflight.ts"; export { workflowSourceLabel } from "./workflow-source.ts"; /** The package-owned registration used by `/workflow create`; definition and provenance cannot drift apart. */ export declare const BUILTIN_CREATE_WORKFLOW: { source: { readonly kind: "builtin"; readonly id: "create"; }; workflow: WorkflowDefinition; }; /** Read new provenance, translating the exact legacy create path into the package-owned built-in ID. */ export declare function workflowSourceOf(events: readonly RunEvent[]): WorkflowSource | undefined; /** * Package-owned built-ins are trusted definitions already imported by the extension. Project-authored * definitions retain the TypeScript-before-evaluation preflight that protects against edited source. * Explicit registry IDs keep trust independent of workflow names; exact paths are recognized only for legacy logs. */ export declare function loadRecordedWorkflow(options: { readonly source: WorkflowSource; readonly projectRoot: string; }): Promise; /** Reload between attended turns while preserving each source kind's existing runtime behavior. */ export declare function reloadRecordedWorkflow(source: WorkflowSource): Promise; //# sourceMappingURL=recorded-workflow.d.ts.map