import { InternalScenarios } from '@regulaforensics/vp-frontend-document-components'; import { LitElement } from 'lit'; import { MirrorType } from '@regulaforensics/vp-frontend-document-components'; import { ModuleType as ModuleType_2 } from '@regulaforensics/vp-frontend-document-components'; import { TemplateResult } from 'lit-html'; declare abstract class BaseModule extends HTMLElement { abstract props: IdvModuleProps | null; abstract setProps(config: IdvModuleProps): void; } declare type DocumentGalleryProps = { processParam?: { multipageProcessing?: boolean; scenario: string; internalScenario: string | InternalScenarios; backendProcessing?: { serviceURL?: string; rfidServerSideChipVerification?: boolean; }; }; selectionLimit?: number; templateId: typeof DocumentIdvSteps.DOC_READER_GALLERY; backgroundColor?: string; tag?: string; sessionId?: string; serviceToken?: string; locale?: string; stepType?: string; failedAssets?: FailedAssets; finalizePackageSettings?: { retryCount: number; retryDelay: number; }; }; export declare class DocumentIdv extends LitElement implements BaseModule { props: IdvModuleProps | null; private renderVersion; setProps(props: IdvModuleProps): void; static isReady(): boolean; static getSupportedTemplates(): ("DOC_READER" | "DOC_READER_GALLERY")[]; static initialize(modulesConfig: DocumentModulesConfig): void; static deinitialize(): void; static getIdentifier(): string; static displayName: string; render(): TemplateResult<1>; } declare const DocumentIdvSteps: { readonly DOC_READER: "DOC_READER"; readonly DOC_READER_GALLERY: "DOC_READER_GALLERY"; }; declare type DocumentIdvSteps = (typeof DocumentIdvSteps)[keyof typeof DocumentIdvSteps]; declare type DocumentModuleProps = DocumentGalleryProps | DocumentReaderProps; declare type DocumentModulesConfig = { docreader: { devLicense?: string; module?: ModuleType_2; }; }; declare type DocumentReaderProps = { processParam?: { multipageProcessing?: boolean; scenario: string; internalScenario: string | InternalScenarios; backendProcessing?: { serviceURL?: string; rfidServerSideChipVerification?: boolean; httpHeaders?: Record; }; }; functionality?: { recordScanningProcess?: boolean; showCaptureButtonDelayFromStart?: number; showCaptureButton?: boolean; showSkipNextPageButton?: boolean; locale?: string; cameraFrame?: number; showCloseButton?: boolean; showCameraSwitchButton?: boolean; videoCaptureMotionControl?: boolean; videoOutputSettings?: { AVVideoWidthKey?: number; AVVideoHeightKey?: number; }; captureMode?: number; cameraMode?: number; internalScenario?: InternalScenarios; multipageProcessing?: boolean; multipleFileInput?: boolean; cameraId?: string; mirrorType?: MirrorType; mobileDelegate?: boolean; finalizeOnTimeout?: boolean; maxImageSize?: number; maxResolutionSize?: number; }; localizationKeys?: Record; customization?: { cameraFrameWidthOffset?: number; backgroundMaskAlpha?: number; backgroundMaskColor?: string; cameraFrameActiveColor?: string; cameraFrameDefaultColor?: string; showStatusMessages?: boolean; cameraFrameBorderWidth?: number; cameraFrameLineLength?: number; cameraFrameShapeType?: number; nextPageAnimationEndDelay?: number; nextPageAnimationStartDelay?: number; statusPositionMultiplier?: number; cameraFrameLandscapeAspectRatio?: number; cameraFramePortraitAspectRatio?: number; cameraFrameCornerRadius?: number; cameraFramePositionMultiplier?: number; activityIndicatorLandscapePositionMultiplier?: number; activityIndicatorPortraitPositionMultiplier?: number; cameraFrameLineCap?: string; fromCameraButton?: boolean; uploadFileButton?: boolean; mirrorButton?: boolean; statusTextColor?: string; statusBackgroundColor?: string; resultStatusTextColor?: string; resultStatusBackgroundColor?: string; activityIndicatorColor?: string; showNextPageAnimation?: boolean; showBackgroundMask?: boolean; statusTextSize?: number; statusTextFontName?: string; resultStatusTextSize?: number; resultStatusTextFontName?: string; activityIndicatorSize?: number; cameraPreviewBackgroundColor?: string; containerCloseButtonImage?: IdvAsset; menuFromCameraButtonImage?: IdvAsset; menuFromGalleryButtonImage?: IdvAsset; menuFromMobileButtonImage?: IdvAsset; closeButton?: IdvAsset; switchButton?: IdvAsset; infoTryAgainButtonImage?: IdvAsset; }; copyright?: boolean; tag?: string; templateId: typeof DocumentIdvSteps.DOC_READER; sessionId?: string; serviceToken?: string; locale?: string; backgroundColor?: string; stepType?: string; preloadAssetsRequired?: boolean; failedAssets?: FailedAssets; finalizePackageSettings?: { retryCount: number; retryDelay: number; }; }; declare type FailedAssets = { imageURL: Set; base64: Set; blockingAssets: Set; }; declare type IdvAsset = { idvAsset: ImageLike; }; declare type IdvModuleProps = { isProcessing?: (isProcessing: boolean) => void; moduleProps: TModuleProps; modulesConfig?: TModulesConfig; perform: (data: any, type?: PerformType) => void; idvEventListener: (module: string, data: any) => void; nonce?: string; }; declare type ImageBase = { imageURL?: string; imageId?: string; base64?: string; prepareRequired?: boolean; failurePolicy?: ImageFailurePolicy; timeout?: number; }; declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error'; declare type ImageLike = ImageBase & { placeholderImage?: ImageLike; }; export declare enum ModuleType { BarcodeMRZ = "BarcodeMRZ", BoundsLite = "BoundsLite" } declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined; declare const PerformTypes: { readonly FORM: "form"; readonly DATA: "data"; }; export { }