import type Database from 'better-sqlite3';
import type { RequestContext } from '../middleware/auth';
export interface EnterpriseAuditInput {
    tenantId: string;
    workspaceId?: string;
    actorUserId?: string;
    action: string;
    resourceType: string;
    resourceId?: string;
    metadata?: Record<string, unknown>;
}
export interface EnterpriseAuditRow {
    action: string;
    resource_type: string;
    resource_id: string | null;
    tenant_id: string;
    workspace_id: string | null;
    actor_user_id: string | null;
}
export interface EnterpriseRequestContextAuditInput {
    action: string;
    resourceType: string;
    resourceId?: string;
    workspaceId?: string | null;
    metadata?: Record<string, unknown>;
}
export declare function recordEnterpriseAuditEvent(db: Database.Database, input: EnterpriseAuditInput): void;
export declare function recordEnterpriseAuditEventForContext(context: RequestContext, input: EnterpriseRequestContextAuditInput): boolean;
export declare function listEnterpriseAuditEvents(db: Database.Database): EnterpriseAuditRow[];
//# sourceMappingURL=enterpriseAuditService.d.ts.map