/**
 * Core audit types and query functions.
 *
 * AuditEntry interface and queryAudit function moved here from
 * src/dispatch/middleware/audit.ts so core modules (session-grade.ts)
 * can use them without importing from the dispatch layer.
 *
 * @task T5715
 * @epic T5701
 */
/**
 * Audit entry interface.
 * Used by session-grade and system-engine for behavioral analysis.
 */
export interface AuditEntry {
    timestamp: string;
    sessionId: string | null;
    domain: string;
    operation: string;
    params: Record<string, unknown>;
    result: {
        success: boolean;
        exitCode: number;
        duration: number;
    };
    metadata: {
        taskId?: string;
        userId?: string;
        source: 'mcp' | 'cli';
        gateway?: 'mutate' | 'query';
    };
    error?: string;
}
/**
 * Query audit entries from SQLite audit_log table.
 * Used by session-grade.ts for behavioral analysis.
 *
 * Returns entries ordered chronologically (ASC) to preserve
 * behavioral sequence for grading analysis.
 */
export declare function queryAudit(options?: {
    sessionId?: string;
    domain?: string;
    operation?: string;
    taskId?: string;
    since?: string;
    limit?: number;
}): Promise<AuditEntry[]>;
//# sourceMappingURL=audit.d.ts.map