import "@dweb-browser/polyfill"; import { type ScanOptions, type ScanResult } from "./barcode-scanning.type.js"; export declare class HTMLDwebBarcodeScanningElement extends HTMLElement { static readonly tagName = "dweb-barcode-scanning"; readonly plugin: import("./barcode-scanning.plugin.js").BarcodeScannerPlugin; private readonly _dialog; private readonly _video; private readonly _canvas; private readonly _ctx; private controller; private _activity?; private _rotation?; private _isCloseLock; constructor(); static readonly _support_native_request_full_screen = false; requestFullscreen(options?: FullscreenOptions): Promise; connectedCallback(): Promise; disconnectedCallback(): void; /** * 返回扫码页面DOM * 根据这个DOM 用户可以自定义样式 * @returns HTMLElement */ get getView(): HTMLElement | null; get process(): () => Promise<{ setRotation(rotation: number): void; process(data: Uint8Array | Blob): any; stop(): void; }>; get stop(): () => Promise; /** * 启动扫码,webComponent版 * @param scanOptions * @returns ScanResult * @since 1.0.0 */ startScanning(scanOptions?: ScanOptions): Promise; /** * 停止扫码 * @since 1.0.0 */ stopScanning(): void; private taskPhoto; /** * 不断识图的任务 * @returns */ private _taskPhoto; /** * 启动摄像 * @returns */ private _startVideo; private rafId?; /** * 拿到帧对象 * @param mediastream */ private gotMedia; } declare global { interface HTMLElementTagNameMap { [HTMLDwebBarcodeScanningElement.tagName]: HTMLDwebBarcodeScanningElement; } } //# sourceMappingURL=barcode-scanning.wc.d.ts.map