/**
 * Pipeline YAML schema — parse and validate brocli-style browser pipeline documents.
 */
export interface PipelineArgDef {
    type: string;
    required?: boolean;
    default?: unknown;
    description?: string;
    choices?: unknown[];
}
export interface PipelineStep {
    /** The single action name (key of the step object). */
    action: string;
    /** Action arguments (value of that key), or raw string for shorthand like `evaluate: |`. */
    args: Record<string, unknown> | string;
}
export interface PipelineDocument {
    name: string;
    description?: string;
    provider?: string;
    include?: string[];
    args: Record<string, PipelineArgDef>;
    pipeline: PipelineStep[];
    onError?: PipelineStep[];
}
export interface PipelineValidationError {
    path: string;
    message: string;
}
export interface PipelineParseResult {
    ok: boolean;
    document?: PipelineDocument;
    errors: PipelineValidationError[];
}
export declare function parseBrowserPipeline(yamlSource: string): PipelineParseResult;
