import type { WorkflowConfig } from '../../../core/models/index.js'; export type WorkflowSource = 'builtin' | 'user' | 'project' | 'repertoire'; export interface WorkflowDirEntry { name: string; path: string; category?: string; source: WorkflowSource; } export interface WorkflowDiscoveryConfig { name: string; description?: string; subworkflow?: WorkflowConfig['subworkflow']; } export interface WorkflowWithSource { config: Config; source: WorkflowSource; } export type WorkflowDiscoveryWithSource = WorkflowWithSource; interface LoadWorkflowsOptions { onWarning?: (message: string) => void; } interface WorkflowLookupDir { dir: string; source: WorkflowSource; disabled?: string[]; } interface ValidatedWorkflowEntry { entry: WorkflowDirEntry; config: Config; } type WorkflowEntryLoader = (entry: WorkflowDirEntry, cwd: string) => Config; export declare function iterateWorkflowDir(dir: string, source: WorkflowSource, disabled?: string[]): Generator; export declare function listWorkflowNamesInDir(dir: string, source: WorkflowSource, disabled?: string[]): string[]; export declare function listBuiltinWorkflowNamesForDir(dir: string, disabled?: string[]): string[]; export declare function listRepertoireWorkflowEntries(): WorkflowDirEntry[]; export declare function collectValidatedWorkflowEntries(entries: Iterable, cwd: string, options?: LoadWorkflowsOptions, workflowEntryLoader?: WorkflowEntryLoader, includeInternalWorkflows?: boolean): ValidatedWorkflowEntry[]; export declare function loadAllWorkflowsWithSourcesFromDirs(cwd: string, dirs: WorkflowLookupDir[], options?: LoadWorkflowsOptions, workflowEntryLoader?: WorkflowEntryLoader, includeInternalWorkflows?: boolean): Map>; export {}; //# sourceMappingURL=workflowDiscovery.d.ts.map