import { n as BarcodeArSettingsJSON } from "./BarcodeArSettings-CM2OimTT.js";
import { t as BarcodeArFilter } from "./BarcodeArFilter-DNs87bfN.js";
import { r as BarcodeFindItemJSON } from "./BarcodeFindItem-B-Z3k7wI.js";
import { n as BarcodeFindSettingsJSON } from "./BarcodeFindSettings-B_STCRxz.js";
import { n as BarcodeFindBasicOverlayJSON } from "./BarcodeFindBasicOverlay-o6FxUPuD.js";
import { K as DataCaptureCallbackMessage$1, S as BarcodeCaptureModule, Y as Module$1, _t as JSONParseable, gt as CaptureModeDeserializerInstance, vt as WasmFrameData } from "./dataCaptureWorkerRelated-CbzUMms-.js";
import { t as Property } from "./PropertyBehaviorSubject-C6JRRRVs.js";
import { DataCaptureEngine } from "@scandit/web-datacapture-core/build/js/worker/index.js";
import { ModuleHandler, Vector, WorkerFunctions } from "@scandit/web-datacapture-core/build/js/worker/index";
//#region src/main/worker/BarcodeBatchMode.d.ts
declare class BarcodeBatchMode {
  barcodeBatchDeserializer: CaptureModeDeserializerInstance;
  private readonly Module;
  private readonly coreEngine;
  private readonly workerFunctions;
  constructor(coreEngine: DataCaptureEngine$1, Module: Module$1, workerFunctions: WorkerFunctions$1);
  barcodeBatchDidUpdateSession(session: JSONParseable): void;
  getBatchDeserializer(): CaptureModeDeserializerInstance;
  setup(): void;
  protected onTrackedBarcodeTapped(trackedBarcode: JSONParseable): void;
}
//#endregion
//#region src/main/worker/BarcodeCaptureMode.d.ts
declare class BarcodeCaptureMode {
  barcodeCaptureDeserializer: CaptureModeDeserializerInstance;
  barcodeBatchDeserializer: CaptureModeDeserializerInstance;
  private readonly Module;
  private readonly coreEngine;
  private readonly workerFunctions;
  private captureListenerSet;
  private areGlowListener;
  private areSyncStateListener;
  private areBarcodeCaptureMode;
  constructor(coreEngine: DataCaptureEngine$1, Module: Module$1, workerFunctions: WorkerFunctions$1);
  barcodeCaptureDidUpdateSession(session: JSONParseable): void;
  barcodeBatchDidUpdateSession(session: JSONParseable): void;
  getCaptureDeserializer(): CaptureModeDeserializerInstance;
  getTrackingDeserializer(): CaptureModeDeserializerInstance;
  setup(): void;
  successFeedback(): void;
  /**
   * Registers the synchronous-ARE glow and sync-state listeners on the deserialized barcode
   * capture mode and posts the current sync-state to the main thread. The glow listener collapses
   * the ARE dispatch outcomes into a single boolean (on while a request is in flight); the
   * sync-state listener re-posts whether a synchronous ARE component is wired whenever it changes.
   * Returns whether the mode proxy was retained, in which case the caller must not delete it.
   */
  private setupAreListeners;
  /**
   * Drops the bridge when the context lets the mode go. The retained proxy holds a strong
   * shared_ptr, so without this the removed mode keeps its detector and ARE integration alive for
   * the rest of the worker's life.
   */
  releaseAreGlowBridge(): void;
  /**
   * Unregisters from the mode a previous deserialization retained and releases its proxy handle.
   * setMode is built to be called repeatedly, and each call produces a fresh C++ mode that the
   * glow bridge has to follow.
   */
  private releaseAreMode;
  private postAreSyncState;
  protected barcodeCaptureDidScan(session: JSONParseable, frameData: WasmFrameData): void;
  protected barcodeCaptureAreServiceDispatchStarted(frameData: WasmFrameData, frameId: number, barcodesJson: string): void;
  protected barcodeCaptureAreServiceResponse(response: string, frameId: number, barcodesJson: string): void;
  protected barcodeCaptureAreServiceError(reason: number, frameId: number, barcodesJson: string): void;
}
//#endregion
//#region src/main/worker/BarcodeFindMode.d.ts
declare class BarcodeFindMode {
  private readonly Module;
  private readonly coreEngine;
  private readonly workerFunctions;
  private barcodeFind;
  private basicOverlay;
  private transparentGuidanceHintStyle;
  private customerTransformation;
  constructor(coreEngine: DataCaptureEngine$1, Module: Module$1, workerFunctions: WorkerFunctions$1);
  forSettings(settings: BarcodeFindSettingsJSON): Promise<void>;
  barcodeFindFeedback(): void;
  start(): void;
  stop(): void;
  pause(): void;
  setEnabled(enabled: boolean): void;
  setItemList(list: BarcodeFindItemJSON[]): void;
  removeMode(): Promise<void>;
  addBasicOverlay(): void;
  removeBasicOverlay(): void;
  applySettings(findSettings: BarcodeFindSettingsJSON): Promise<void>;
  updateBasicOverlay(json: BarcodeFindBasicOverlayJSON): void;
  setTransformerFunction(transformation?: ((data: string) => string) | null): void;
  private successFeedback;
  private listUpdatedFeedback;
  private setToast;
  private setGuidance;
  private createWebFindGuidanceHandler;
}
//#endregion
//#region src/main/worker/SparkScanMode.d.ts
declare class SparkScanMode {
  sparkScanDeserializer: CaptureModeDeserializerInstance;
  private readonly Module;
  private readonly coreEngine;
  private readonly workerFunctions;
  private captureListenerSet;
  private sparkScanOverlay?;
  private smartScanSelectionOverlay?;
  private propertyPushSource;
  private sparkScan?;
  constructor(coreEngine: DataCaptureEngine$1, Module: Module$1, workerFunctions: WorkerFunctions$1);
  sparkScanDidUpdateSession(session: JSONParseable): void;
  getSparkScanDeserializer(): CaptureModeDeserializerInstance;
  setup(): void;
  emitErrorFeedback(shouldRemoveBrush: boolean): void;
  overlayReadyForDraw(): void;
  discardEnqueuedData(): void;
  analyticsManagerPropertyChanged(property: Property): void;
  successFeedback(): void;
  selectItemWithSmartScanSelection(): void;
  enableSingleScanMode(enabled: boolean): void;
  removeMode(): Promise<void>;
  protected sparkScanDidScan(session: JSONParseable, frameData: WasmFrameData): void;
}
//#endregion
//#region src/main/worker/dataCaptureEngine.d.ts
interface WorkerFunctions$1 extends WorkerFunctions {
  postMessage: (message: DataCaptureCallbackMessage$1, transfer?: Transferable[]) => void;
  getOffscreenCanvas: () => OffscreenCanvas | undefined;
}
interface BarcodeCommand {
  command: string;
}
/**
 * DataCaptureEngine is an abstraction of the engine, it is created by the engine worker
 * and should be used as a singleton. It calls the underlying engine methods directly.
 */
declare class DataCaptureEngine$1 extends DataCaptureEngine<BarcodeCaptureModule> {
  barcodeFindMode: BarcodeFindMode;
  sparkScanMode: SparkScanMode;
  barcodeArMode: BarcodeArMode;
  protected barcodeCaptureMode: BarcodeCaptureMode;
  protected barcodeBatchMode: BarcodeBatchMode;
  protected workerFunctions: WorkerFunctions$1;
  constructor(moduleHandler: ModuleHandler<BarcodeCaptureModule>, workerFunctions: WorkerFunctions$1);
  getModeDeserializers(): Vector;
  protected getWasmSideModuleFileName(): string;
  protected getWasmCoreFileName(simdSupport: boolean, multithreadSupport: boolean): string;
  protected getWasmCoreExpectedHash(simdSupport: boolean, multithreadSupport: boolean): string;
  protected getWasmMetadata(): Record<string, {
    bytes: number;
  }>;
  releaseAreGlowBridge(): void;
}
//#endregion
//#region src/main/worker/BarcodeArMode.d.ts
type BarcodeArFilterFunction = BarcodeArFilter["filterBarcodes"];
declare class BarcodeArMode {
  private readonly Module;
  private readonly coreEngine;
  private readonly workerFunctions;
  private barcodeAr;
  private nativeFilter;
  private filterAppliedToNativeMode;
  private customerFilter;
  constructor(coreEngine: DataCaptureEngine$1, Module: Module$1, workerFunctions: WorkerFunctions$1);
  forSettings(settings: BarcodeArSettingsJSON, filter?: BarcodeArFilterFunction | null): Promise<void>;
  start(): void;
  pause(): void;
  stop(): void;
  setEnabled(enabled: boolean): void;
  removeMode(): Promise<void>;
  applySettings(checkSettingsJSON: BarcodeArSettingsJSON): void;
  setFilterFunction(filter?: BarcodeArFilterFunction | null): void;
  private attachFilterToNativeMode;
  private createNativeFilter;
  private keptBarcodeIndices;
}
//#endregion
export { WorkerFunctions$1 as a, BarcodeCaptureMode as c, DataCaptureEngine$1 as i, BarcodeBatchMode as l, BarcodeArMode as n, SparkScanMode as o, BarcodeCommand as r, BarcodeFindMode as s, BarcodeArFilterFunction as t };