/**
 * ADR-PIPELINE-067: Financial Consistency Runner
 *
 * Orchestrates the extract → rules → report pipeline. Writes a structured
 * violations report to the run directory, prepends a warning header to any
 * affected markdown document, and escalates to a hard failure under
 * AGENTICS_STRICT_FCV=true.
 */
import { type FinancialClaim, type FinancialClaimDocument } from './financial-claim-extractor.js';
import { type Violation } from './financial-consistency-rules.js';
import type { UnitEconomics } from '../pipeline/types.js';
import type { ConsensusSnapshot } from './consensus-tiers.js';
export interface InputDocument {
    readonly kind: FinancialClaimDocument;
    readonly path: string;
    readonly content: string;
}
export interface ConsistencyReport {
    readonly run_id: string;
    readonly generated_at: string;
    readonly passed: boolean;
    readonly strict: boolean;
    readonly totals: {
        errors: number;
        warnings: number;
    };
    readonly violations: readonly ReportViolation[];
    readonly documents_scanned: number;
    readonly claims_extracted: number;
}
export interface ReportViolation {
    readonly rule_id: string;
    readonly severity: 'error' | 'warn';
    readonly message: string;
    readonly suggested_fix?: string;
    readonly claims: readonly ReportClaim[];
}
export interface ReportClaim {
    readonly document: FinancialClaimDocument;
    readonly section: string;
    readonly kind: string;
    readonly scope: string;
    readonly line: number;
    readonly rawText: string;
}
export declare class FinancialConsistencyError extends Error {
    readonly code: string;
    constructor(message: string, code?: string);
}
export interface RunOptions {
    readonly documents: readonly InputDocument[];
    readonly runDir: string;
    readonly runId?: string;
    readonly manifest?: UnitEconomics | null;
    /** Optional consensus snapshot — required for FCR-010 (ADR-PIPELINE-071). */
    readonly consensus?: ConsensusSnapshot | null;
    /** Override for testing. Defaults to AGENTICS_STRICT_FCV env check. */
    readonly strict?: boolean;
    /** When true, write affected documents back with a warning header. */
    readonly annotateDocuments?: boolean;
}
export interface RunResult {
    readonly report: ConsistencyReport;
    readonly reportPath: string;
    readonly violations: readonly Violation[];
    readonly claims: readonly FinancialClaim[];
}
/**
 * Run the extractor + rules against a set of documents and write the report.
 * Returns the structured result so callers can log, annotate, or branch.
 */
export declare function runConsistencyCheck(options: RunOptions): RunResult;
//# sourceMappingURL=financial-consistency-runner.d.ts.map