import { OneSDKError } from '../../errors/OneSDKError.class'; import type { EventHub } from '../../modules/eventHub'; import type { Document } from '../../shared/models/Document'; import type { OneSdkContext } from '../../../types'; type IDVResults = { provider?: string | null; document: Document | null; entityId: string | null; }; type Dependencies = { oneSdkInstance: OneSdkContext; localEventHub: EventHub<{ loading: [boolean, { message: string; }]; detection_complete: []; detection_failed: [OneSDKError]; results: [IDVResults]; ready: [{ domElement: HTMLElement; }]; }>; mountElement: HTMLElement; /** When this option is true, the Form will be rendered before the 'results' event. */ attachForm: boolean; }; /** * Use currying to create a callback function that will be called when the vendor emits "results" event. * The callback may or may not include the Form for reviewing the results, * based on the value of the "attachForm" parameter. * * Attention: The caller "loading" state should be true when calling this method. * A "loading" false event will be emitted when the initial actions are completed. */ export declare function useFormToReviewResults(deps: Dependencies): (results: IDVResults) => Promise; export {}; //# sourceMappingURL=useForm.d.ts.map