///
import { t as AdaptiveRecognitionMode } from "./AdaptiveRecognitionMode-DBr--JVQ.js";
import { n as NativeCallActionMessage } from "./nativeDispatch-C7kZCRYA.js";
import { o as Quadrilateral$1, r as MeasureUnit$1, t as FloatWithUnit } from "./sdcCoreCommonGeometry-Bxvlllkc.js";
import { o as RectangularLocationSelection$1, s as RectangularLocationSelection_statics } from "./sdcCoreInternalSdkArea-BDbnSRls.js";
import { a as NoViewfinder_statics, c as RectangularViewfinderAnimation_statics, d as RectangularViewfinder_statics, i as NoViewfinder, n as AimerViewfinder_statics, o as RectangularViewfinder$1, t as AimerViewfinder$1 } from "./sdcCoreInternalSdkUiViewfinder-BoG0LyRj.js";
import { a as LabelFieldType, i as LabelFieldState, r as LabelFieldLocationType } from "./sdcLabelData-CHLquvuG.js";
import { A as LabelResultUpdateType, B as TextField, D as LabelFieldLocation, E as LabelFieldDefinition, F as ReceiptScanningHandler, H as TotalPriceText_statics, I as ReceiptScanningListener, J as ValidationFlowState, M as PackingDateText_statics, N as PartNumberBarcode, O as LabelFieldLocation_statics, P as PartNumberBarcode_statics, R as SerialNumberBarcode, S as LabelCapture_statics, T as LabelDefinition_statics, U as UnitPriceText, V as TotalPriceText, W as UnitPriceText_statics, X as WeightText_statics, Y as WeightText, _ as LabelCaptureHelper_statics, a as CustomText, b as LabelCaptureSettings, c as DateText_statics, d as ImeiOneBarcode, f as ImeiOneBarcode_statics, g as LabelCaptureHelper, h as LabelCapture, i as CustomBarcode_statics, j as PackingDateText, l as ExpiryDateText, m as ImeiTwoBarcode_statics, n as BarcodeField_statics, o as CustomText_statics, p as ImeiTwoBarcode, r as CustomBarcode, s as DateText, t as BarcodeField, u as ExpiryDateText_statics, v as LabelCaptureListener, w as LabelDefinition, x as LabelCaptureSettings_statics, y as LabelCaptureSession, z as SerialNumberBarcode_statics } from "./sdcLabelInternalModuleCapture-B6-1Wjzn.js";
import { n as Barcode } from "./sdcBarcodeInternalSdkData-CJZsjs8c.js";
import { a as ReceiptScanningLineItem, o as ReceiptScanningResult$1, r as LabelField, t as CapturedLabel } from "./sdcLabelInternalModuleData-D_O2Y4cu.js";
import { a as LabelCaptureBasicOverlay_statics, c as ReceiptScanningSettings, d as ValidationFlowOverlay, f as ValidationFlowOverlay_statics, g as ValidationFlowSettings_statics, h as ValidationFlowSettingsDefaults_statics, l as ReceiptScanningSettings_statics, m as ValidationFlowSettingsDefaults, n as LabelCaptureAdvancedOverlay_statics, o as ReceiptScanningOverlay, p as ValidationFlowSettings, r as LabelCaptureBasicOverlay, s as ReceiptScanningOverlay_statics, t as LabelCaptureAdvancedOverlay } from "./sdcLabelInternalModuleUiOverlay-CGIKcVOW.js";
import { n as LabelFieldJSON } from "./LabelField-BAO35-Eb.js";
import { n as CapturedLabelJSON } from "./CapturedLabel-PjFfeqht.js";
import { n as LabelCaptureSessionJSON } from "./LabelCaptureSession-Dc8YZO9H.js";
import { n as ReceiptScanningLineItemJSON, t as ReceiptScanningLineItem$1 } from "./ReceiptScanningLineItem-CZ--bISr.js";
import { n as ValidationFlowFieldJSON } from "./ValidationFlowField-DL7FdqPM.js";
import { AimerViewfinderJSON, BrushJSON, LocationSelectionJSON, PrivateLoadableFrameData, RectangularViewfinderAnimation, RectangularViewfinderJSON } from "@scandit/web-datacapture-core";
import { nativeHandle } from "@scandit/web-datacapture-core/build/js/private/nativeHandle.js";
import { AnyDataCaptureActionMessage, DataCaptureActionMessageKey, DataCaptureCallbackMessage, DataCaptureCallbackMessageKeys, Module, WorkerResponse } from "@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated";
//#region src/main/api/ReceiptScanningResult.d.ts
interface ReceiptScanningResultJSON {
storeName: string | null;
storeCity: string | null;
storeAddress: string | null;
date: string | null;
time: string | null;
paymentPreTaxTotal: number | null;
paymentTax: number | null;
paymentTotal: number | null;
loyaltyNumber: number | null;
lineItems: ReceiptScanningLineItemJSON[];
}
/**
* Represents the result of a receipt scanning operation.
* Contains store information, payment details, and line items extracted from the receipt.
*/
declare class ReceiptScanningResult extends AdaptiveRecognitionResult {
resultType: AdaptiveRecognitionResultType;
private _storeName?;
private _storeCity?;
private _storeAddress?;
private _date?;
private _time?;
private _paymentPreTaxTotal?;
private _paymentTax?;
private _paymentTotal?;
private _loyaltyNumber?;
private _lineItems;
/**
* The name of the store, or null if not available.
*/
get storeName(): string | null;
/**
* The city where the store is located, or null if not available.
*/
get storeCity(): string | null;
/**
* The address of the store, or null if not available.
*/
get storeAddress(): string | null;
/**
* The date from the receipt, or null if not available.
*/
get date(): string | null;
/**
* The time from the receipt, or null if not available.
*/
get time(): string | null;
/**
* The pre-tax total amount, or null if not available.
*/
get paymentPreTaxTotal(): number | null;
/**
* The tax amount, or null if not available.
*/
get paymentTax(): number | null;
/**
* The total amount, or null if not available.
*/
get paymentTotal(): number | null;
/**
* The loyalty program number, or null if not available.
*/
get loyaltyNumber(): number | null;
/**
* The line items from the receipt.
*/
get lineItems(): ReceiptScanningLineItem$1[];
toJSONObject(): ReceiptScanningResultJSON;
}
//#endregion
//#region src/main/worker/dataCaptureWorkerRelated.d.ts
type AugmentedWorker$1 = DedicatedWorkerGlobalScope & {
Module: M;
} & typeof globalThis;
interface ModuleHandler$1 {
get: () => M;
set: (v: M) => void;
}
interface AugmentedCoreModule extends Module {
FloatWithUnit: FloatWithUnit;
MeasureUnit: MeasureUnit$1;
RectangularLocationSelection: RectangularLocationSelection$1 & RectangularLocationSelection_statics;
}
interface LabelData {
LabelFieldLocationType: LabelFieldLocationType;
LabelFieldState: LabelFieldState;
LabelFieldType: LabelFieldType;
}
interface LabelInternalModuleCapture {
BarcodeField: BarcodeField & BarcodeField_statics;
CustomBarcode: CustomBarcode & CustomBarcode_statics;
CustomText: CustomText & CustomText_statics;
DateText: DateText & DateText_statics;
ExpiryDateText: ExpiryDateText & ExpiryDateText_statics;
ImeiOneBarcode: ImeiOneBarcode & ImeiOneBarcode_statics;
ImeiTwoBarcode: ImeiTwoBarcode & ImeiTwoBarcode_statics;
LabelCapture: LabelCapture & LabelCapture_statics;
LabelCaptureHelper: LabelCaptureHelper & LabelCaptureHelper_statics;
LabelCaptureListener: LabelCaptureListener;
LabelCaptureSession: LabelCaptureSession;
LabelCaptureSettings: LabelCaptureSettings & LabelCaptureSettings_statics;
LabelDefinition: LabelDefinition & LabelDefinition_statics;
LabelFieldDefinition: LabelFieldDefinition;
LabelFieldLocation: LabelFieldLocation & LabelFieldLocation_statics;
PackingDateText: PackingDateText & PackingDateText_statics;
PartNumberBarcode: PartNumberBarcode & PartNumberBarcode_statics;
ReceiptScanningHandler: ReceiptScanningHandler;
ReceiptScanningListener: ReceiptScanningListener;
SerialNumberBarcode: SerialNumberBarcode & SerialNumberBarcode_statics;
TextField: TextField;
TotalPriceText: TotalPriceText & TotalPriceText_statics;
UnitPriceText: UnitPriceText & UnitPriceText_statics;
WeightText: WeightText & WeightText_statics;
LabelCaptureBasicOverlay: LabelCaptureBasicOverlay & LabelCaptureBasicOverlay_statics;
LabelCaptureAdvancedOverlay: LabelCaptureAdvancedOverlay & LabelCaptureAdvancedOverlay_statics;
ReceiptScanningOverlay: ReceiptScanningOverlay & ReceiptScanningOverlay_statics;
ReceiptScanningSettings: ReceiptScanningSettings & ReceiptScanningSettings_statics;
ValidationFlowOverlay: ValidationFlowOverlay & ValidationFlowOverlay_statics;
RectangularViewfinder: RectangularViewfinder$1 & RectangularViewfinder_statics;
RectangularViewfinderAnimation: RectangularViewfinderAnimation & RectangularViewfinderAnimation_statics;
AimerViewfinder: AimerViewfinder$1 & AimerViewfinder_statics;
NoViewfinder: NoViewfinder & NoViewfinder_statics;
ValidationFlowSettings: ValidationFlowSettings & ValidationFlowSettings_statics;
ValidationFlowSettingsDefaults: ValidationFlowSettingsDefaults & ValidationFlowSettingsDefaults_statics;
}
interface LabelInternalModuleData {
CapturedLabel: CapturedLabel;
LabelField: LabelField;
ReceiptScanningLineItem: ReceiptScanningLineItem;
ReceiptScanningResult: ReceiptScanningResult$1;
}
interface LabelCaptureModule extends LabelData, LabelInternalModuleCapture, LabelInternalModuleData {}
interface Module$1 extends AugmentedCoreModule, LabelCaptureModule {}
type DataCaptureActionMessageKey$1 = DataCaptureActionMessageKey | `${string}.${string}` | "initializeNativeHandles" | "labelCaptureBuildPriceCaptureDefinition" | "labelCaptureBuildVinLabelDefinition" | "labelCaptureSettingsGetLocationSelection" | "labelCaptureSettingsSetLocationSelection" | "labelCaptureBasicOverlayForLabelCapture" | "labelCaptureBasicOverlaySetDefaultFieldBrush" | "labelCaptureBasicOverlaySetDefaultLabelBrush" | "labelCaptureBasicOverlaySetBrushForField" | "labelCaptureBasicOverlaySetBrushForLabel" | "labelCaptureBasicOverlaySetListener" | "labelCaptureBasicOverlayGetDefaultFieldBrush" | "labelCaptureBasicOverlayGetDefaultLabelBrush" | "labelCaptureBasicOverlayGetShouldShowScanAreaGuides" | "labelCaptureBasicOverlaySetShouldShowScanAreaGuides" | "labelCaptureBasicOverlayGetViewfinder" | "labelCaptureBasicOverlayUpdateViewfinder" | "labelCaptureAdvancedOverlayForLabelCapture" | "labelCaptureAdvancedOverlaySetShouldShowScanAreaGuides" | "labelCaptureAdvancedOverlayGetShouldShowScanAreaGuides" | "validationFlowOverlayGetLabelViewfinder" | "validationFlowOverlayGetTargetViewfinder" | "receiptScanningHandlerStartFlow" | "receiptScanningHandlerFinishFlow" | "receiptScanningHandlerAddListener" | "receiptScanningHandlerRemoveListener" | "validationFlowHandlerCreate" | "validationFlowHandlerStartCompleteLabelScan" | "validationFlowHandlerStartPartialLabelScan" | "validationFlowHandlerUpdateFieldValue" | "validationFlowHandlerFinishFlow" | "validationFlowHandlerPauseScan" | "validationFlowHandlerResumeScan" | "validationFlowHandlerReset" | "validationFlowHandlerGetValidationFlowFields" | "validationFlowHandlerCancelCloudBackupTaskForField" | "validationFlowHandlerUncancelCloudBackupTaskForField" | "validationFlowHandlerClearAllFields";
type WorkerResponse$1 = WorkerResponse;
interface DataCaptureActionMessage {
command: DataCaptureActionMessageKey$1;
id: number;
}
interface ReceiptScanningHandlerStartFlowActionMessage extends DataCaptureActionMessage {
command: "receiptScanningHandlerStartFlow";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ReceiptScanningHandlerFinishFlowActionMessage extends DataCaptureActionMessage {
command: "receiptScanningHandlerFinishFlow";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ReceiptScanningHandlerAddListenerActionMessage extends DataCaptureActionMessage {
command: "receiptScanningHandlerAddListener";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ReceiptScanningHandlerRemoveListenerActionMessage extends DataCaptureActionMessage {
command: "receiptScanningHandlerRemoveListener";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ValidationFlowHandlerCreateActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerCreate";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ValidationFlowHandlerStartCompleteLabelScanActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerStartCompleteLabelScan";
payload: {
labelCaptureHandle: NativeProxyHandle;
labelName: string;
};
}
interface ValidationFlowHandlerStartPartialLabelScanActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerStartPartialLabelScan";
payload: {
labelCaptureHandle: NativeProxyHandle;
fieldNames: string[];
};
}
interface ValidationFlowHandlerUpdateFieldValueActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerUpdateFieldValue";
payload: {
labelCaptureHandle: NativeProxyHandle;
fieldName: string;
value: string;
};
}
interface ValidationFlowHandlerFinishFlowActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerFinishFlow";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ValidationFlowHandlerPauseScanActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerPauseScan";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ValidationFlowHandlerResumeScanActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerResumeScan";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ValidationFlowHandlerResetActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerReset";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ValidationFlowHandlerGetValidationFlowFieldsActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerGetValidationFlowFields";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface ValidationFlowHandlerCancelCloudBackupTaskForFieldActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerCancelCloudBackupTaskForField";
payload: {
labelCaptureHandle: NativeProxyHandle;
fieldName: string;
};
}
interface ValidationFlowHandlerUncancelCloudBackupTaskForFieldActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerUncancelCloudBackupTaskForField";
payload: {
labelCaptureHandle: NativeProxyHandle;
fieldName: string;
};
}
interface ValidationFlowHandlerClearAllFieldsActionMessage extends DataCaptureActionMessage {
command: "validationFlowHandlerClearAllFields";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface LabelCaptureBuildVinLabelDefinitionActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBuildVinLabelDefinition";
payload: {
name: string;
adaptiveRecognitionMode?: AdaptiveRecognitionMode;
};
}
interface LabelCaptureBuildPriceCaptureDefinitionActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBuildPriceCaptureDefinition";
payload: {
name: string;
adaptiveRecognitionMode?: AdaptiveRecognitionMode;
};
}
interface LabelCaptureSettingsGetLocationSelectionActionMessage extends DataCaptureActionMessage {
command: "labelCaptureSettingsGetLocationSelection";
payload: {
settingsHandle: NativeProxyHandle;
};
}
interface LabelCaptureSettingsSetLocationSelectionActionMessage extends DataCaptureActionMessage {
command: "labelCaptureSettingsSetLocationSelection";
payload: {
settingsHandle: NativeProxyHandle;
locationSelection: LocationSelectionJSON;
};
}
interface LabelCaptureBasicOverlayForLabelCaptureActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlayForLabelCapture";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface LabelCaptureBasicOverlaySetDefaultFieldBrushActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlaySetDefaultFieldBrush";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
labelFieldState: LabelFieldState;
brush: BrushJSON | undefined | null;
};
}
interface LabelCaptureBasicOverlayGetDefaultFieldBrushActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlayGetDefaultFieldBrush";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
labelFieldState: LabelFieldState;
};
}
interface LabelCaptureBasicOverlaySetDefaultLabelBrushActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlaySetDefaultLabelBrush";
payload: {
brush: BrushJSON | undefined | null;
labelCaptureBasicOverlayHandle: NativeProxyHandle;
};
}
interface LabelCaptureBasicOverlayGetDefaultLabelBrushActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlayGetDefaultLabelBrush";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
};
}
interface LabelCaptureBasicOverlaySetBrushForFieldActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlaySetBrushForField";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
fieldJSON: LabelFieldJSON;
labelJSON: CapturedLabelJSON;
brush: BrushJSON | undefined | null;
};
}
interface LabelCaptureBasicOverlaySetBrushForLabelActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlaySetBrushForLabel";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
labelJSON: CapturedLabelJSON;
brush: BrushJSON | undefined | null;
};
}
interface LabelCaptureBasicOverlaySetListenerActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlaySetListener";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
value: boolean;
};
}
interface LabelCaptureBasicOverlayGetShouldShowScanAreaGuidesActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlayGetShouldShowScanAreaGuides";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
};
}
interface LabelCaptureBasicOverlaySetShouldShowScanAreaGuidesActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlaySetShouldShowScanAreaGuides";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
show: boolean;
};
}
interface LabelCaptureBasicOverlayGetViewfinderActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlayGetViewfinder";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
};
}
interface LabelCaptureBasicOverlayUpdateViewfinderActionMessage extends DataCaptureActionMessage {
command: "labelCaptureBasicOverlayUpdateViewfinder";
payload: {
labelCaptureBasicOverlayHandle: NativeProxyHandle;
viewfinderJSON: RectangularViewfinderJSON | AimerViewfinderJSON;
};
}
interface LabelCaptureAdvancedOverlayForLabelCaptureActionMessage extends DataCaptureActionMessage {
command: "labelCaptureAdvancedOverlayForLabelCapture";
payload: {
labelCaptureHandle: NativeProxyHandle;
};
}
interface LabelCaptureAdvancedOverlaySetShouldShowScanAreaGuidesActionMessage extends DataCaptureActionMessage {
command: "labelCaptureAdvancedOverlaySetShouldShowScanAreaGuides";
payload: {
labelCaptureAdvancedOverlayHandle: NativeProxyHandle;
show: boolean;
};
}
interface LabelCaptureAdvancedOverlayGetShouldShowScanAreaGuidesActionMessage extends DataCaptureActionMessage {
command: "labelCaptureAdvancedOverlayGetShouldShowScanAreaGuides";
payload: {
labelCaptureAdvancedOverlayHandle: NativeProxyHandle;
};
}
interface InitializeNativeHandlesActionMessage extends DataCaptureActionMessage {
command: "initializeNativeHandles";
}
type AnyDataCaptureActionMessage$1 = AnyDataCaptureActionMessage | NativeCallActionMessage | InitializeNativeHandlesActionMessage | LabelCaptureBuildVinLabelDefinitionActionMessage | LabelCaptureBuildPriceCaptureDefinitionActionMessage | LabelCaptureSettingsGetLocationSelectionActionMessage | LabelCaptureSettingsSetLocationSelectionActionMessage | LabelCaptureBasicOverlayForLabelCaptureActionMessage | LabelCaptureBasicOverlaySetDefaultFieldBrushActionMessage | LabelCaptureBasicOverlayGetDefaultFieldBrushActionMessage | LabelCaptureBasicOverlaySetDefaultLabelBrushActionMessage | LabelCaptureBasicOverlayGetDefaultLabelBrushActionMessage | LabelCaptureBasicOverlaySetBrushForFieldActionMessage | LabelCaptureBasicOverlaySetBrushForLabelActionMessage | LabelCaptureBasicOverlaySetListenerActionMessage | LabelCaptureBasicOverlayGetShouldShowScanAreaGuidesActionMessage | LabelCaptureBasicOverlaySetShouldShowScanAreaGuidesActionMessage | LabelCaptureBasicOverlayGetViewfinderActionMessage | LabelCaptureBasicOverlayUpdateViewfinderActionMessage | LabelCaptureAdvancedOverlayForLabelCaptureActionMessage | LabelCaptureAdvancedOverlaySetShouldShowScanAreaGuidesActionMessage | LabelCaptureAdvancedOverlayGetShouldShowScanAreaGuidesActionMessage | ReceiptScanningHandlerStartFlowActionMessage | ReceiptScanningHandlerFinishFlowActionMessage | ReceiptScanningHandlerAddListenerActionMessage | ReceiptScanningHandlerRemoveListenerActionMessage | ValidationFlowHandlerCreateActionMessage | ValidationFlowHandlerStartCompleteLabelScanActionMessage | ValidationFlowHandlerStartPartialLabelScanActionMessage | ValidationFlowHandlerUpdateFieldValueActionMessage | ValidationFlowHandlerFinishFlowActionMessage | ValidationFlowHandlerPauseScanActionMessage | ValidationFlowHandlerResumeScanActionMessage | ValidationFlowHandlerResetActionMessage | ValidationFlowHandlerGetValidationFlowFieldsActionMessage | ValidationFlowHandlerCancelCloudBackupTaskForFieldActionMessage | ValidationFlowHandlerUncancelCloudBackupTaskForFieldActionMessage | ValidationFlowHandlerClearAllFieldsActionMessage;
type DataCaptureCallbackMessageKeys$1 = DataCaptureCallbackMessageKeys | "labelCaptureOnObservationStarted" | "labelCaptureOnObservationStopped" | "labelCaptureOnSessionUpdated" | "labelCaptureSettingsGetLocationSelection" | "labelCaptureSettingsSetLocationSelection" | "labelCaptureBasicOverlayOnLabelTapped" | "labelCaptureBasicOverlayBrushForField" | "labelCaptureBasicOverlayBrushForLabel" | "labelCaptureLabelDateFormatWithFormat" | "receiptScanningListenerOnProcessingStarted" | "receiptScanningListenerOnReceiptScanned" | "receiptScanningListenerOnReceiptScanningFailed" | "validationFlowListenerOnFieldsScanned" | "validationFlowListenerOnScanTimeout" | "validationFlowListenerOnLabelIsMissingRequiredField" | "validationFlowListenerOnManualInput" | "validationFlowListenerOnCloudBackupServiceStarted" | "validationFlowListenerOnCloudBackupServiceStopped" | "validationFlowListenerOnStateChanged" | "validationFlowListenerOnResultUpdate" | "validationFlowFeedbackForCloudBackupEmit";
interface BaseDataCaptureCallbackMessage {
type: DataCaptureCallbackMessageKeys$1;
}
interface LabelCaptureBasicOverlayOnLabelTappedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureBasicOverlayOnLabelTapped";
payload: {
labelJSON: CapturedLabelJSON;
};
}
interface LabelCaptureBasicOverlayBrushForFieldCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureBasicOverlayBrushForField";
payload: {
fieldJSON: LabelFieldJSON;
labelJSON: CapturedLabelJSON;
};
}
interface LabelCaptureBasicOverlayBrushForLabelCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureBasicOverlayBrushForLabel";
payload: {
labelJSON: CapturedLabelJSON;
};
}
interface LabelCaptureOnObservationStartedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureOnObservationStarted";
}
interface LabelCaptureOnObservationStoppedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureOnObservationStopped";
}
interface LabelCaptureOnSessionUpdatedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureOnSessionUpdated";
payload: {
session: LabelCaptureSessionJSON;
data: PrivateLoadableFrameData;
};
}
interface LabelCaptureSettingsGetLocationSelectionCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureSettingsGetLocationSelection";
payload: LocationSelectionJSON;
}
interface LabelCaptureSettingsSetLocationSelectionCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "labelCaptureSettingsSetLocationSelection";
}
interface ReceiptScanningListenerOnProcessingStartedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "receiptScanningListenerOnProcessingStarted";
}
interface ReceiptScanningListenerOnReceiptScannedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "receiptScanningListenerOnReceiptScanned";
payload: {
result: ReceiptScanningResultJSON;
};
}
interface ReceiptScanningListenerOnReceiptScanningFailedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "receiptScanningListenerOnReceiptScanningFailed";
}
interface ValidationFlowListenerOnFieldsScannedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnFieldsScanned";
payload: {
fields: ValidationFlowFieldJSON[];
};
}
interface ValidationFlowListenerOnScanTimeoutCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnScanTimeout";
}
interface ValidationFlowListenerOnLabelIsMissingRequiredFieldCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnLabelIsMissingRequiredField";
payload: {
fields: ValidationFlowFieldJSON[];
};
}
interface ValidationFlowListenerOnManualInputCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnManualInput";
payload: {
field: ValidationFlowFieldJSON;
oldValue: string | undefined;
newValue: string;
};
}
interface ValidationFlowListenerOnCloudBackupServiceStartedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnCloudBackupServiceStarted";
}
interface ValidationFlowListenerOnCloudBackupServiceStoppedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnCloudBackupServiceStopped";
}
interface ValidationFlowListenerOnStateChangedCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnStateChanged";
payload: {
state: ValidationFlowState;
};
}
interface ValidationFlowListenerOnResultUpdateCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowListenerOnResultUpdate";
payload: {
updateType: LabelResultUpdateType;
fields: ValidationFlowFieldJSON[];
data?: PrivateLoadableFrameData;
};
}
interface ValidationFlowFeedbackForCloudBackupEmitCallbackMessage extends BaseDataCaptureCallbackMessage {
type: "validationFlowFeedbackForCloudBackupEmit";
}
type DataCaptureCallbackMessage$1 = DataCaptureCallbackMessage | LabelCaptureOnObservationStartedCallbackMessage | LabelCaptureOnObservationStoppedCallbackMessage | LabelCaptureOnSessionUpdatedCallbackMessage | LabelCaptureSettingsGetLocationSelectionCallbackMessage | LabelCaptureSettingsSetLocationSelectionCallbackMessage | LabelCaptureBasicOverlayOnLabelTappedCallbackMessage | LabelCaptureBasicOverlayBrushForFieldCallbackMessage | LabelCaptureBasicOverlayBrushForLabelCallbackMessage | ReceiptScanningListenerOnProcessingStartedCallbackMessage | ReceiptScanningListenerOnReceiptScannedCallbackMessage | ReceiptScanningListenerOnReceiptScanningFailedCallbackMessage | ValidationFlowListenerOnFieldsScannedCallbackMessage | ValidationFlowListenerOnScanTimeoutCallbackMessage | ValidationFlowListenerOnLabelIsMissingRequiredFieldCallbackMessage | ValidationFlowListenerOnManualInputCallbackMessage | ValidationFlowListenerOnCloudBackupServiceStartedCallbackMessage | ValidationFlowListenerOnCloudBackupServiceStoppedCallbackMessage | ValidationFlowListenerOnStateChangedCallbackMessage | ValidationFlowListenerOnResultUpdateCallbackMessage | ValidationFlowFeedbackForCloudBackupEmitCallbackMessage;
type PayloadForCommand = A extends {
command: C;
} ? A : never;
interface DataCaptureWorker extends Omit {
onmessage: // biome-ignore lint/suspicious/noExplicitAny: Strict type-checking isn't needed for this parameter.
((this: Worker, event_: MessageEvent & {
data: any;
}) => void) | null;
postMessage: (message: PayloadForCommand, transfer?: Transferable[]) => void;
}
type CommandAndPayload = A extends {
command: C;
} ? A : never;
type WorkerCommandPayload = Omit, "command" | "id">;
//#endregion
//#region src/main/worker/proxies/NativeProxy.d.ts
type NativeClassName = keyof LabelCaptureModule;
interface NativeProxyHandle {
type: "nativeProxyHandle";
className: NativeClassName;
id: number;
}
type NativeProxyMethod = (handle: NativeProxyHandle, ...arguments_: Arguments) => Promise;
type NativeProxy = { [Member in keyof NativeClass]: NativeClass[Member] extends ((...arguments_: infer Arguments) => infer ReturnValue) ? ReturnValue extends (LabelField | CapturedLabel | LabelFieldDefinition)[] ? NativeProxyMethod : ReturnValue extends LabelFieldLocation | undefined ? NativeProxyMethod : ReturnValue extends Quadrilateral$1 | LabelFieldDefinition | LabelCaptureSession | Barcode ? NativeProxyMethod : NativeProxyMethod> : NativeClass[Member] };
declare abstract class NativeProxyAdapter {
get Module(): Module$1;
impl(handle: NativeProxyHandle): NativeClass;
}
//#endregion
//#region src/main/api/LabelCaptureAdaptiveRecognitionSettings.d.ts
/**
* Enum specifying the type of document for adaptive recognition result.
*/
declare enum AdaptiveRecognitionResultType {
/**
* Receipt document type.
*/
Receipt = "receipt"
}
interface ReceiptScanningSettingsJSON {
resultType: AdaptiveRecognitionResultType;
processingHintText: string;
}
/**
* Settings to customize the adaptive recognition receipt scanning UI.
* These settings are applied to LabelCaptureAdaptiveRecognitionOverlay.
*/
declare class LabelCaptureAdaptiveRecognitionSettings {
[nativeHandle]: NativeProxyHandle;
private constructor();
resultType: AdaptiveRecognitionResultType;
setProcessingHintText(text: string): Promise;
getProcessingHintText(): Promise;
/**
* Creates new settings with default values.
*/
static create(resultType?: AdaptiveRecognitionResultType): Promise;
}
//#endregion
//#region src/main/api/AdaptiveRecognitionResult.d.ts
declare abstract class AdaptiveRecognitionResult {
resultType: AdaptiveRecognitionResultType;
}
//#endregion
export { ModuleHandler$1 as $, LabelCaptureBasicOverlayGetViewfinderActionMessage as A, WorkerResponse$1 as At, LabelCaptureBuildVinLabelDefinitionActionMessage as B, LabelCaptureAdvancedOverlaySetShouldShowScanAreaGuidesActionMessage as C, ValidationFlowListenerOnFieldsScannedCallbackMessage as Ct, LabelCaptureBasicOverlayGetDefaultFieldBrushActionMessage as D, ValidationFlowListenerOnScanTimeoutCallbackMessage as Dt, LabelCaptureBasicOverlayForLabelCaptureActionMessage as E, ValidationFlowListenerOnResultUpdateCallbackMessage as Et, LabelCaptureBasicOverlaySetDefaultLabelBrushActionMessage as F, LabelCaptureSettingsGetLocationSelectionActionMessage as G, LabelCaptureOnObservationStartedCallbackMessage as H, LabelCaptureBasicOverlaySetListenerActionMessage as I, LabelCaptureSettingsSetLocationSelectionCallbackMessage as J, LabelCaptureSettingsGetLocationSelectionCallbackMessage as K, LabelCaptureBasicOverlaySetShouldShowScanAreaGuidesActionMessage as L, LabelCaptureBasicOverlaySetBrushForFieldActionMessage as M, ReceiptScanningResultJSON as Mt, LabelCaptureBasicOverlaySetBrushForLabelActionMessage as N, LabelCaptureBasicOverlayGetDefaultLabelBrushActionMessage as O, ValidationFlowListenerOnStateChangedCallbackMessage as Ot, LabelCaptureBasicOverlaySetDefaultFieldBrushActionMessage as P, Module$1 as Q, LabelCaptureBasicOverlayUpdateViewfinderActionMessage as R, LabelCaptureAdvancedOverlayGetShouldShowScanAreaGuidesActionMessage as S, ValidationFlowListenerOnCloudBackupServiceStoppedCallbackMessage as St, LabelCaptureBasicOverlayBrushForLabelCallbackMessage as T, ValidationFlowListenerOnManualInputCallbackMessage as Tt, LabelCaptureOnObservationStoppedCallbackMessage as U, LabelCaptureModule as V, LabelCaptureOnSessionUpdatedCallbackMessage as W, LabelInternalModuleCapture as X, LabelData as Y, LabelInternalModuleData as Z, DataCaptureCallbackMessage$1 as _, ValidationFlowHandlerStartCompleteLabelScanActionMessage as _t, NativeClassName as a, ReceiptScanningListenerOnProcessingStartedCallbackMessage as at, InitializeNativeHandlesActionMessage as b, ValidationFlowHandlerUpdateFieldValueActionMessage as bt, NativeProxyHandle as c, ValidationFlowFeedbackForCloudBackupEmitCallbackMessage as ct, AugmentedCoreModule as d, ValidationFlowHandlerCreateActionMessage as dt, PayloadForCommand as et, AugmentedWorker$1 as f, ValidationFlowHandlerFinishFlowActionMessage as ft, DataCaptureActionMessageKey$1 as g, ValidationFlowHandlerResumeScanActionMessage as gt, DataCaptureActionMessage as h, ValidationFlowHandlerResetActionMessage as ht, ReceiptScanningSettingsJSON as i, ReceiptScanningHandlerStartFlowActionMessage as it, LabelCaptureBasicOverlayOnLabelTappedCallbackMessage as j, ReceiptScanningResult as jt, LabelCaptureBasicOverlayGetShouldShowScanAreaGuidesActionMessage as k, WorkerCommandPayload as kt, NativeProxyMethod as l, ValidationFlowHandlerCancelCloudBackupTaskForFieldActionMessage as lt, CommandAndPayload as m, ValidationFlowHandlerPauseScanActionMessage as mt, AdaptiveRecognitionResultType as n, ReceiptScanningHandlerFinishFlowActionMessage as nt, NativeProxy as o, ReceiptScanningListenerOnReceiptScannedCallbackMessage as ot, BaseDataCaptureCallbackMessage as p, ValidationFlowHandlerGetValidationFlowFieldsActionMessage as pt, LabelCaptureSettingsSetLocationSelectionActionMessage as q, LabelCaptureAdaptiveRecognitionSettings as r, ReceiptScanningHandlerRemoveListenerActionMessage as rt, NativeProxyAdapter as s, ReceiptScanningListenerOnReceiptScanningFailedCallbackMessage as st, AdaptiveRecognitionResult as t, ReceiptScanningHandlerAddListenerActionMessage as tt, AnyDataCaptureActionMessage$1 as u, ValidationFlowHandlerClearAllFieldsActionMessage as ut, DataCaptureCallbackMessageKeys$1 as v, ValidationFlowHandlerStartPartialLabelScanActionMessage as vt, LabelCaptureBasicOverlayBrushForFieldCallbackMessage as w, ValidationFlowListenerOnLabelIsMissingRequiredFieldCallbackMessage as wt, LabelCaptureAdvancedOverlayForLabelCaptureActionMessage as x, ValidationFlowListenerOnCloudBackupServiceStartedCallbackMessage as xt, DataCaptureWorker as y, ValidationFlowHandlerUncancelCloudBackupTaskForFieldActionMessage as yt, LabelCaptureBuildPriceCaptureDefinitionActionMessage as z };