import type { AuditResult, AuditTask, CoverageMatrix } from "../types.js"; export declare function ingestAuditResults(coverageMatrix: CoverageMatrix, results: AuditResult[]): CoverageMatrix; export declare function updateAuditTaskStatuses(tasks: AuditTask[] | undefined, results: AuditResult[]): AuditTask[] | undefined; /** * Splits raw (unvalidated) audit results into those whose `task_id` is still in * the active task manifest and those orphaned by a later re-plan (e.g. selective- * deepening tasks pruned in a subsequent round). Orphaned results cannot be * ingested — coverage is keyed by the active task set — and must not abort an * otherwise-valid batch at the ingestion validation gate. Returns the retained * results plus the orphaned task ids so the caller can skip-and-warn, or `null` * when there is nothing to filter (not an array, or no active manifest yet), * signaling the caller to pass the results through unchanged. */ export declare function partitionOrphanedAuditResults(results: unknown, activeTaskIds: Set): { retained: unknown[]; orphanedTaskIds: string[]; } | null; //# sourceMappingURL=resultIngestion.d.ts.map