import { type HttpClientType } from '../httpExternal/omyClient'; export type ApiResponseType = { data: { api_request: { error: Record; resources: string[]; status: string; status_code: number; url: string; }; document: { id: string; name: string; n_pages: number; is_rotation_applied: boolean; inference: { started_at: string; finished_at: string; processing_time: number; pages: [ { id: number; orientation: { value: number; }; prediction: Record<'alternate_name' | 'authority' | 'birth_date' | 'birth_place' | 'card_access_number' | 'country' | 'document_number' | 'document_side' | 'document_type' | 'expiry_date' | 'gender' | 'given_names' | 'id_number' | 'issuance_date' | 'issue_date' | 'nationality' | 'surname', Record<'value', string> | Record<'value', string>[]>; extras: Record; } ]; prediction: Record; extras: Record; }; }; }; }; export type Prediction = ApiResponseType['data']['document']['inference']['pages']['0']['prediction']; export type PredictKey = keyof Prediction; export type PredictKeys = Array; export type PassportType = { birth_date: string | null; birth_place: string | null; country: string | null; expiry_date: string | null; gender: string | null; given_names: string[] | null; id_number: string | null; issuance_date: string | null; surname: string | null; }; export type IDCardType = { alternate_name: string | null; authority: string | null; birth_date: string | null; birth_place: string | null; card_access_number: string | null; document_number: string | null; document_side: string | null; document_type: string | null; expiry_date: string | null; gender: string | null; given_names: string[] | null; issue_date: string | null; nationality: string | null; surname: string | null; }; export type PredictDocumentData = Type extends 'passport' ? PassportType : IDCardType; export declare class DocVerifier { private provider; private headers; private http; private apiUrl; constructor(provider: { apiUrl: string; apiKey: string; httpClientType: HttpClientType; }); private setHttp; private getPredictData; private dataFormatter; verifyPassport(file: string): Promise<{ data: PassportType[]; error: Record; status: string; code: number; }>; verifyIdentityCard(file: string): Promise<{ data: IDCardType[]; error: Record; status: string; code: number; }>; }