import { t as Serializable } from "./Serializable-BNGC32bH.js"; import { f as FrameSource, h as FrameSourceState, m as FrameSourceListener } from "./Camera-BKZMXwCV.js"; //#region src/main/ImageFrameSource.d.ts 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; } //#endregion export { ImageFrameSourceJSON as n, ImageFrameSource as t };