import type { WorkflowDefinition, WorkflowSource } from "./types.js"; export type LegacyBuiltinSource = { workflowHash: string; revision: string; pathSuffixes: readonly string[]; }; export type BuiltinWorkflowRegistration = { id: string; revision: string; definition: WorkflowDefinition; legacySources?: LegacyBuiltinSource[]; }; export type BuiltinWorkflowEntry = Readonly<{ id: string; ref: string; revision: string; definition: WorkflowDefinition; legacySources: readonly LegacyBuiltinSource[]; }>; export type LegacyBuiltinMatch = { entry: BuiltinWorkflowEntry; revision: string; }; /** Process-local catalog of package-provided workflow definitions. */ export declare class BuiltinWorkflowCatalog { private readonly byId; private readonly byName; constructor(registrations: BuiltinWorkflowRegistration[]); list(): BuiltinWorkflowEntry[]; get(id: string): BuiltinWorkflowEntry | undefined; getByName(name: string): BuiltinWorkflowEntry | undefined; resolve(source: WorkflowSource, runId?: string): WorkflowDefinition; matchLegacy(options: { workflowName: string; workflowPath: string; workflowHash: string; }): LegacyBuiltinMatch | undefined; /** Identify a registered old built-in path without accepting its revision. */ legacyPathEntry(options: { workflowName: string; workflowPath: string; }): BuiltinWorkflowEntry | undefined; }