/**
 * Merge Output Parser
 *
 * Extracts structured data (commit SHA, PR URL/number) from agent text output
 * using regex patterns. Falls back gracefully to null when patterns don't match.
 */
export interface PrParseResult {
    url: string;
    number: number;
}
export interface CiWatchParseResult {
    status: 'success' | 'failure';
    summary?: string;
    runUrl?: string;
}
/**
 * Extract the first commit SHA from agent output text.
 * Looks for git commit output format `[branch SHA]` or `commit SHA`.
 * Returns null if no SHA found.
 */
export declare function parseCommitHash(output: string): string | null;
/**
 * Extract the first GitHub PR URL and number from agent output text.
 * Returns null if no PR URL found.
 */
export declare function parsePrUrl(output: string): PrParseResult | null;
/**
 * Extract CI watch result from agent output text.
 * Looks for CI_STATUS: PASSED or CI_STATUS: FAILED markers.
 * When multiple CI_STATUS markers appear, uses the last one.
 * Returns failure with diagnostic summary if no marker found.
 */
export declare function parseCiWatchResult(output: string): CiWatchParseResult;
//# sourceMappingURL=merge-output-parser.d.ts.map