import type { EponymeAuditEvent, EponymeAuditInput, EponymeAuditPage } from '../../types/audit.js'; type DateValue = Date | string; interface PrismaAuditRow { id: string; occurredAt: DateValue; actorUserId: string | null; actorUsername: string | null; action: string; outcome: string; resourceType: string | null; resourceName: string | null; targetUserId: string | null; ipAddress: string | null; userAgent: string | null; metadata: unknown; } export interface PrismaEponymeAuditClient { eponymeAuditEvent: { create(args: { data: Record; }): Promise; findMany(args: Record): Promise; deleteMany(args: { where: { id: { in: string[]; }; }; }): Promise<{ count: number; }>; }; eponymeMaintenanceState: { findUnique(args: { where: { key: string; }; }): Promise<{ key: string; lastRunAt: DateValue; } | null>; create(args: { data: { key: string; lastRunAt: Date; }; }): Promise; updateMany(args: { where: { key: string; lastRunAt: DateValue; }; data: { lastRunAt: Date; }; }): Promise<{ count: number; }>; }; } export declare class EponymeAuditService { private readonly client; constructor(client: PrismaEponymeAuditClient); record(input: EponymeAuditInput): Promise; list(options?: { cursor?: string; limit?: number; action?: string; actorUserId?: string; resourceType?: string; resourceName?: string; from?: Date; to?: Date; }): Promise; prune(retentionDays: number, intervalHours: number, now?: Date): Promise; private claimMaintenance; } export {};