/** * Data integrity audit core module. * @task T4783 */ export interface AuditIssue { severity: 'error' | 'warning' | 'info'; category: string; message: string; fix?: string; } export interface AuditResult { scope: string; issues: AuditIssue[]; summary: { errors: number; warnings: number; fixed: number; }; } /** Audit data integrity. */ export declare function auditData(projectRoot: string, opts?: { scope?: string; fix?: boolean; }): Promise; /** Paginated operation log query result. */ export interface LogQueryData { /** Log entries matching the query. */ entries: Array<{ /** Operation name. */ operation: string; /** Task ID if applicable. */ taskId?: string; /** ISO timestamp. */ timestamp: string; [key: string]: unknown; }>; /** Pagination metadata. */ pagination: { /** Total matching entries. */ total: number; /** Current offset. */ offset: number; /** Page size limit. */ limit: number; /** Whether more entries exist beyond this page. */ hasMore: boolean; }; } /** * Query audit_log from SQLite with optional filters and pagination. * * Reads from the canonical tasks.db audit_log table. Includes dispatch-level * fields (domain, requestId, durationMs, success, source, gateway, errorMessage) * when present. * * @param projectRoot - Absolute path to the project root * @param filters - Optional filter and pagination parameters * @returns Paginated log entries with metadata * * @task T4837 * @task T4844 * @task T1571 */ export declare function queryAuditLog(projectRoot: string, filters?: { operation?: string; taskId?: string; since?: string; until?: string; limit?: number; offset?: number; }): Promise; //# sourceMappingURL=audit.d.ts.map