import type { Database as DatabaseType } from 'better-sqlite3'; export declare function emitEvent(db: DatabaseType, kind: string, topicId: number | null, payload?: string): number; export declare function getEventsAfter(db: DatabaseType, afterId: number, topicId?: number): Array<{ id: number; kind: string; topic_id: number | null; payload: string | null; created_at: string; }>; export declare function logUsage(db: DatabaseType, email: string, agentName: string, jobId: number): void; export declare function countRecentJobs(db: DatabaseType, email: string, windowSeconds?: number): number; //# sourceMappingURL=events.d.ts.map