/**
 * Pipeline output formatting — standardize pipeline results for tool consumption.
 */
import type { BrowserActionResult, BrowserArtifact, BrowserDiagnostics } from '../actions/types.js';
export interface PipelineOutput {
    ok: boolean;
    name: string;
    /** Final output data (from `output` action or last step data). */
    data: unknown;
    /** All artifacts collected during the pipeline. */
    artifacts: BrowserArtifact[];
    /** Diagnostics from failed steps or on_error. */
    diagnostics: BrowserDiagnostics;
    /** Per-step results summary. */
    steps: {
        action: string;
        ok: boolean;
        text?: string;
    }[];
    /** Error from the failed step (if any). */
    error?: {
        step: number;
        action: string;
        code: string;
        message: string;
    };
}
export declare function createPipelineOutput(name: string): PipelineOutput;
export declare function addStepResult(output: PipelineOutput, stepIndex: number, result: BrowserActionResult): void;
/**
 * Format a PipelineOutput into a BrowserActionResult for tool consumption.
 */
export declare function formatPipelineResult(output: PipelineOutput): BrowserActionResult;
