import type { AuditEvent, AuditQueryFilters } from "./types.js"; export declare function ensureAuditTables(): Promise; export declare function insertAuditEvent(event: AuditEvent): Promise; export interface AuditReadScope { userEmail?: string; orgId?: string | null; } export declare const MAX_LIMIT = 500; export declare function queryAuditEvents(scope: AuditReadScope, filters?: AuditQueryFilters): Promise; export declare function getAuditEventById(id: string, scope: AuditReadScope): Promise; /** Purge audit rows older than `cutoffMs`. Returns the deleted row count. */ export declare function deleteOldAuditEvents(cutoffMs: number): Promise; /** Test-only: reset the cached init promise so a fresh DB re-creates tables. */ export declare function __resetAuditInitForTests(): void; //# sourceMappingURL=store.d.ts.map