import type { Document } from '../common/shared/models/Document'; import type { OCRStatus } from '../frankie-client/clients/OCRClient'; export type Events = { session_data_generated: [ { session: { entityId: string; vendorParameters: unknown; }; } ]; session_data_failed_loading: [{ code?: unknown; message: string; }]; ready: [{ domElement: HTMLElement; }]; detection_complete: [{ provider: string; source?: 'ocr' | 'biometrics'; }] | []; detection_failed: [{ message?: string; }]; input_required: [Info, OCRStatus, ProvideFile]; results: [{ document: Document | null; entityId: string | null; }]; file_uploaded: [FileUploadedMeta]; session_closed: []; session_interrupted: [SessionInterrupted]; vendor_event: [Record]; }; export type FileUploadedMeta = { fileName: string | null; mimeType: string | null; scanId: string | null; statusAfterUpload: OCRStatus; statusBeforeUpload: OCRStatus | null; }; export type Info = { documentType: Document['idType'] | null; side: 'front' | 'back' | null; }; export type ProvideFile = (blob: File) => void; export type SessionInterrupted = { eventName: string; reason: string; module: 'OCR' | 'BIOMETRICS' | 'IDV'; }; //# sourceMappingURL=events.d.ts.map