import { BaseRepository } from '@mostajs/orm'; import type { IDialect, QueryOptions } from '@mostajs/orm'; export interface ScanLogDTO { id: string; ticket: any; client: any; activity: any; scannedBy: any; scanMethod: string; result: 'granted' | 'denied'; denyReason: string | null; quotaBefore: number | null; quotaAfter: number | null; isReentry: boolean; timestamp: string; } export declare class ScanLogRepository extends BaseRepository { constructor(dialect: IDialect); /** Find recent scan logs with ticket & scannedBy populated */ findRecent(filter?: Record, options?: QueryOptions): Promise; /** Find scan history for a specific client */ findByClient(clientId: string, options?: QueryOptions): Promise; /** Count all scans for today */ countToday(): Promise; /** Count granted scans for today */ countGrantedToday(): Promise; /** Get distinct clients with granted scans today (visitors present) */ findDistinctClientsToday(): Promise; /** Check if a ticket was already scanned today (for day_reentry) */ wasScannedToday(ticketId: string): Promise; } //# sourceMappingURL=scan-log.repository.d.ts.map