import type { Applicant } from '../../../../common/shared/models/Applicant'; import type { Document, Scan } from '../../../../common/shared/models/Document'; import type { DeepPartial } from '../../../../common/shared/models/general'; import type { OCRDocumentType } from '../../../clients/OCRClient'; import { OCRStatus } from '../../../clients/OCRClient'; import type { PartialDocument, ScanSide } from './ocrFlow'; import type { SimplifiedMockOptions } from './SimplifiedMockOptions.type'; import type { MockOptions } from '../MockOptions.type'; /** * Preloaded Individual */ /** SimplifiedMockOptions */ export type SimplifiedPreloadedIndividual = { preloadedIndividual: { individual?: DeepPartial; documents?: PartialDocument[]; }; } | { preloadedIndividual: false; }; /** Validation */ export declare function validatePreloadedIndividualSimplifiedOptions(_options: SimplifiedMockOptions): asserts _options is SimplifiedPreloadedIndividual; /** SimplifiedMockOptions resolution */ export declare function resolveSimplifiedPreloadedIndividualMockOptions(simplified: SimplifiedMockOptions): Partial; /** Helpers */ export declare const hasPreloadedIndividual: (options: SimplifiedMockOptions) => options is Exclude; export declare const resolveSimplifiedPreloadedDocument: (partialDoc: PartialDocument, allOptions: SimplifiedMockOptions) => DeepPartial; /** * statusToScans will resolve the scan side for any particular status in the whole ocr flow taking the latest results and the commplete pre defined flow * By a combination of the past status, the current status and the next status, it will determine what the current required scan is, if any and also what the current scans are, if any. * @param status the latest status returned from a mocked OCR request * @param index the current position within the complete OCR flow (the requests array) * @param allStatuses the complete array of different statuses expected in the OCR flow * @param docType the type of document being scanned **/ export declare const statusToScans: (status: OCRStatus, index: number, allStatuses: OCRStatus[], docType?: OCRDocumentType) => ScanSide; export declare const resolveScans: (scansOptions: PartialDocument["scans"]) => Scan[]; //# sourceMappingURL=preloadedIndividual.d.ts.map