import { type Problem, type Workflow } from "./types.js"; export type ParseResult = { workflow: Workflow; problems: []; } | { workflow: null; problems: Problem[]; }; /** The rule parse gives a workflow's `name`, for `loadWorkflow`, which * takes a name from its caller and builds a file name from it. Null for * an identifier; otherwise parse's message, so `../x` is refused before * anything is read. */ export declare function _workflowNameProblem(name: string): string | null; export declare function parseWorkflow(raw: unknown): ParseResult;