import { type AuditEntry } from "./schemas.js"; export declare const AUDIT_FILENAME = "performance-audit.jsonl"; export declare const DEFAULT_AUDIT_LIMIT = 50; export declare const MAX_AUDIT_LINE_BYTES: number; export declare const MAX_AUDIT_SCAN_BYTES: number; export declare const MAX_AUDIT_SCAN_LINES = 10000; /** Appends one entry. Existing lines are never rewritten. */ export declare function appendAuditEntry(entry: Omit, directory?: string, now?: Date): Promise; export interface AuditLogPage { entries: AuditEntry[]; /** Unreadable lines met while collecting the newest entries (older lines are not scanned). */ invalid_lines: number; truncated: boolean; } /** * Returns the newest `limit` entries, newest first. The file is read backwards in chunks and * scanning stops once one entry beyond the limit is found or the byte/line budget is spent, so a * large or hostile log cannot make reads unbounded. Lines over MAX_AUDIT_LINE_BYTES count as * invalid without being buffered. */ export declare function readAuditLog(directory?: string, options?: { limit?: number; }): Promise; //# sourceMappingURL=audit-log.d.ts.map