import type { Document, IDocumentPayload } from '../../../common/shared/models/Document'; import { OCRStatus } from '../../clients/OCRClient'; import type { OCRDocumentType } from '../../clients/OCRClient'; import type { DummyFrankieApiClient } from '../../DummyFrankieApiClient'; import type { IDVFlowOptions } from '../idvAndBiometrics/idvSubmission'; import type { MockOptions as _MockOptions } from '../options/MockOptions.type'; import type { PartialDeep } from 'type-fest'; export { OCRStatus as Status }; export type OCRDocumentOptions = { status: OCRStatus; ocrDocument: PartialDeep; }; export type Options = { detectedType?: OCRDocumentType; updateResponsePayloads: OCRDocumentOptions[]; postResponsePayload: OCRDocumentOptions | null; }; type MockOptions = _MockOptions & { ocrRequests?: Options; }; export declare function submitOCR(client: DummyFrankieApiClient, options?: MockOptions): DummyFrankieApiClient; export declare function createOCRDocument(client: DummyFrankieApiClient, options?: MockOptions): DummyFrankieApiClient; export declare function updateOCRDocument(client: DummyFrankieApiClient, options?: MockOptions): DummyFrankieApiClient; /** * idvFlow options describe what happens in each request to the ocr endpoints. This function will determine the result of each request. * Creates a full payload based on the current request, to go into the data field of the axios response. * It does a deep merge of the default payload with the provided results. * @param requestOptions the options describing the results for the current request * @param allMockOptions a higher level view on all the options, beyond this current request * @returns a complete payload for the current request, to go into the data field of the axios response */ export declare const mkOCRResultPayload: (requestOptions: OCRDocumentOptions | null, allMockOptions?: { ocrRequests?: { detectedType?: OCRDocumentType; }; idvFlow?: IDVFlowOptions; }) => { status: OCRStatus; ocrDocument: IDocumentPayload; }; //# sourceMappingURL=ocrSubmission.d.ts.map