import type { CheckProcessingPool } from '../../definition'; import type { Events } from '../../events'; import type { EventHub } from '../../../common'; import type { SdkError, SdkHandle } from '../../../common/vendors/onfido/onfido.types'; import type { IDVClient } from '../../../frankie-client/clients/IDVClient'; import type { RecipeParsed } from '../../../sdk/types'; export declare const handleOnfidoComplete: ({ idvClient, recipe, eventHub, checkProcessingPool, detectionCompletePayload, }: { idvClient: IDVClient; recipe: RecipeParsed; eventHub: EventHub; checkProcessingPool?: CheckProcessingPool; detectionCompletePayload: { provider: string; source?: "ocr" | "biometrics"; }; }) => Promise; export declare const handleOnfidoError: ({ idvClient, error, recipe, eventHub, }: { idvClient: IDVClient; error: SdkError; recipe: RecipeParsed; eventHub: EventHub; }) => Promise; /** * A host-callable teardown, safe to call at any time and more than once. Onfido * portals its UI onto ``, outside the mount element, so clearing the * container cannot remove it — this is what `biometrics.unmount()` needs in * order to end the flow without stranding the applicant in a live vendor UI. */ export declare const mkOnfidoUnmount: (opts: Parameters[0]) => (() => void); export declare const removeOnfidoSdk: ({ instance, recipe, eventHub, sdkVersion, userAnalyticsEventListener, onfidoScriptElement, }: { instance: SdkHandle; recipe: RecipeParsed; eventHub: EventHub; sdkVersion: number; userAnalyticsEventListener: EventListener; onfidoScriptElement?: HTMLScriptElement; }) => Promise; //# sourceMappingURL=shared.d.ts.map