/**
 * Audit-log query for the per-cell timeline. Matches rows whose
 * `metadata` jsonb names the cell on any of the keys used by cell-domain
 * event envelopes — `cell_id` (cell mutations + grants), `source_id` /
 * `new_id` (clone), `source_id` / `target_id` (cell_field events),
 * `parent_id` / `child_id` (cell_item events).
 *
 * Each `metadata @> '{...}'::jsonb` clause hits the existing GIN on
 * `audit_log.metadata`; Postgres bitmap-ORs the index scans together.
 *
 * @module
 */
import type { QueryDeps } from './query_deps.js';
import type { AuditLogEvent } from '../auth/audit_log_schema.js';
import type { Uuid } from '@fuzdev/fuz_util/id.js';
export interface CellAuditListOptions {
    limit: number;
    /** Cursor — return rows with `seq < before`. */
    before?: number;
}
/**
 * Fetch audit rows mentioning `cell_id` on any cell-domain metadata key.
 * Ordered newest-first by `seq` for cursor pagination through `before`.
 */
export declare const query_audit_log_list_by_cell: (deps: QueryDeps, cell_id: Uuid, options: CellAuditListOptions) => Promise<Array<AuditLogEvent>>;
//# sourceMappingURL=cell_audit_queries.d.ts.map