import { type AuditLimits, type RawRetention } from './limits.mts'; import type { ClassifyFailure, ClaudeDenialRecord, ClaudeEscalationRecord, ClaudeSandboxFailureRecord } from './types.mts'; export type ClaudeExtraction = { escalations: ClaudeEscalationRecord[]; denials: ClaudeDenialRecord[]; sandboxFailures: ClaudeSandboxFailureRecord[]; rawRetention: RawRetention; }; export type ClaudeRecordExtractor = { pushLine: (line: string) => void; result: () => ClaudeExtraction; }; export type ClaudeExtractOptions = { classifyFailure?: ClassifyFailure | undefined; limits: AuditLimits; }; /** * Streams Claude transcript lines into escalation, denial and sandbox-failure records. A * tool_use always precedes its tool_result in file order, so one forward pass correlates every * result with its command. A malformed or partially written line never hides earlier records. */ export declare function createClaudeRecordExtractor(options: ClaudeExtractOptions): ClaudeRecordExtractor; export declare function extractClaudeRecords(lines: string[], options: ClaudeExtractOptions): ClaudeExtraction;