/// import { a as FrameSource, b as FrameSourceState, c as FrameSourceListener } from './Camera-Cz-HPV-7.js'; import { Serializable } from './private/Serializable.js'; import './private/FrameReaders/WatermarkStack.js'; import './tsHelper.js'; import './Common.js'; import './DataCaptureContextSettings.js'; import './DataCaptureViewPlusRelated.js'; import './ViewControls.js'; import './private/CustomLocationsView.js'; import './private/View.js'; import './private/AnchorPositions.js'; import './private/HtmlElementState.js'; import './logger.js'; import './LoadingStatus.js'; interface ImageFrameSourceJSON { /** * The official type should be "image", but we cannot use it because it would not work in conjunction * with Centaurus. */ type: "imageFrameSource"; } declare class ImageFrameSource implements FrameSource, Serializable { /** * The official type should be "image", but we cannot use it because it would not work in conjunction * with Centaurus. * @see toJSONObject */ private readonly type; private readonly _listeners; private _currentState; private _desiredState; private _context; private _imageData; get desiredState(): FrameSourceState; private get context(); private set context(value); private get currentState(); static fromFile(file: File): Promise; static fromImage(image: HTMLImageElement): Promise; static fromImageData(imageData: ImageData): Promise; switchToDesiredState(state: FrameSourceState): Promise; addListener(listener: FrameSourceListener | null): void; removeListener(listener: FrameSourceListener | null): void; toJSONObject(): ImageFrameSourceJSON; getCurrentState(): FrameSourceState; private getCanvasAndContext; private setCurrentState; private notifyContext; private notifyListeners; private processSubmittedImage; } export { ImageFrameSource, type ImageFrameSourceJSON };