@innovatrics/dot-document-auto-capture
Version:
Digital onboarding document capture
10 lines (9 loc) • 745 B
TypeScript
import type { ControlEventInstructionValues, DocumentCustomEvent, FaceCustomEvent, PalmCustomEvent, RequestCaptureInstructionValues } from '../types/events';
/**
* It dispatches a custom event with the given event name and event detail
* @param {DocumentCustomEvent.CONTROL | FaceCustomEvent.CONTROL | PalmCustomEvent.CONTROL} eventName - The name of the event to
* dispatch.
* @param {ControlEventInstruction} instruction - ControlEventInstruction
*/
export declare const dispatchControlEvent: (eventName: DocumentCustomEvent.CONTROL | FaceCustomEvent.CONTROL | PalmCustomEvent.CONTROL, instruction: ControlEventInstructionValues) => void;
export declare function dispatchCaptureEvent(instruction: RequestCaptureInstructionValues): void;