import { i as LabelFieldState } from "./sdcLabelData-CHLquvuG.js"; import { t as LabelField } from "./LabelField-BAO35-Eb.js"; import { t as CapturedLabel } from "./CapturedLabel-PjFfeqht.js"; import { c as NativeProxyHandle } from "./AdaptiveRecognitionResult-Clnk-SP8.js"; import { t as LabelCapture } from "./LabelCapture-BZi-QVCO.js"; import { t as LabelCaptureOverlayJSON } from "./LabelCaptureOverlayJSON-B6X3-JDh.js"; import { Brush, DataCaptureOverlay, DataCaptureView, Viewfinder } from "@scandit/web-datacapture-core"; import { nativeHandle } from "@scandit/web-datacapture-core/build/js/private/nativeHandle.js"; import { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable"; //#region src/main/api/LabelCaptureBasicOverlayListener.d.ts /** * Interface to customize the visual appearance of highlighted labels and their fields. * When label capture identifies a new field, or when the LabelField.state property changes, * brushForField() is called to determine the brush of the field. */ interface LabelCaptureBasicOverlayListener { /** * Called for each field to determine its brush whenever the field's state changes. * In case the field is tracked over multiple frames and its state does not change, * the same brush is used. The field brush can be changed by explicit calls to * LabelCaptureBasicOverlay.setBrushForField(). */ brushForField?(overlay: LabelCaptureBasicOverlay, field: LabelField, label: CapturedLabel): Brush | null; /** * Called for each label to determine its brush whenever one of the label's fields * changes its state/data. In case the field is tracked over multiple frames and none * of the fields changes its state, the same brush is used. The label brush can be * changed by explicit calls to LabelCaptureBasicOverlay.setBrushForLabel(). */ brushForLabel?(overlay: LabelCaptureBasicOverlay, label: CapturedLabel): Brush | null; /** * Called every time a captured label is tapped. */ onLabelTapped?(overlay: LabelCaptureBasicOverlay, label: CapturedLabel): void; } //#endregion //#region src/main/api/LabelCaptureBasicOverlay.d.ts declare class LabelCaptureBasicOverlay implements DataCaptureOverlay, Serializable { [nativeHandle]: NativeProxyHandle; private listeners; private onWorkerMessageHandler; private proxiedViewFinder; static withLabelCapture(labelCapture: LabelCapture): Promise; static withLabelCaptureForView(labelCapture: LabelCapture, view: DataCaptureView): Promise; private constructor(); toJSONObject(): LabelCaptureOverlayJSON; getListener(): Promise; setListener(labelCaptureBasicOverlayListener?: LabelCaptureBasicOverlayListener): Promise; getDefaultFieldBrush(fieldState: LabelFieldState): Promise; setDefaultFieldBrush(brush: Brush, fieldState: LabelFieldState): Promise; getDefaultLabelBrush(): Promise; setDefaultLabelBrush(brush: Brush): Promise; setBrushForField(brush: Brush, field: LabelField, label: CapturedLabel): Promise; setBrushForLabel(brush: Brush, label: CapturedLabel): Promise; getShouldShowScanAreaGuides(): Promise; setShouldShowScanAreaGuides(value: boolean): Promise; getViewfinder(): Promise; setViewfinder(viewFinder: Viewfinder): Promise; private onWorkerMessage; } //#endregion export { LabelCaptureBasicOverlayListener as n, LabelCaptureBasicOverlay as t };