import type { AuditRecord } from "@adjudicate/core"; import type { IntentAuditRow } from "./postgres-sink.js"; export interface AuditQueryFnWindow { readonly fromIso: string; readonly toIso: string; readonly intentKind?: string; readonly limit?: number; } export interface AuditQueryFn { /** * Return rows whose `recorded_at` falls within the inclusive window * [fromIso, toIso] (APIReviewer-003 boundary convention — both ends * inclusive, matching the admin-sdk audit query window). Optional filter by * `intentKind`. Limit caps the result set; adopters may stream via repeated * calls if needed. */ fetchRows(window: AuditQueryFnWindow): Promise; } export declare function rowToRecord(row: IntentAuditRow): AuditRecord; /** * Read a window of audit rows and return them as AuditRecord[] suitable for * `replay()` from @adjudicate/audit. */ export declare function readAuditWindow(query: AuditQueryFn, window: AuditQueryFnWindow): Promise; //# sourceMappingURL=replay.d.ts.map