import type { WorkflowDefinition } from "./types.js"; export type DiscoveredWorkflow = { name: string; path: string; source: "project" | "global" | "path"; }; export type WorkflowSearchPaths = { cwd: string; homeDir?: string; }; /** Directories scanned for `*.workflow.ts` files, in precedence order. */ export declare function workflowSearchDirs(options: WorkflowSearchPaths): { dir: string; source: "project" | "global"; }[]; export declare function workflowFileStem(filePath: string): string; /** Load a workflow module from disk. The default export must be `defineWorkflow(...)`. */ export declare function loadWorkflowFile(filePath: string): Promise; /** Discover named workflows in the project and global workflow directories. */ export declare function discoverWorkflows(options: WorkflowSearchPaths): Promise; /** * Resolve a `/workflow` argument to a workflow file. Accepts a discovered * workflow name or a direct path to a `*.workflow.ts` file. */ export declare function resolveWorkflowRef(ref: string, options: WorkflowSearchPaths): Promise<{ path: string; source: DiscoveredWorkflow["source"]; }>;