import type { ImageData } from 'canvas'; import type { QrCodeLib } from '../../interfaces/QrCodeLib.mjs'; /** * Gets the ImageData from an image, for browser environments. * This ImageData is then further processed to get QR codes. * @param input - The image to get the ImageData from. * @returns A promise that resolves to the ImageData. */ export declare const getImageDataFromInput: (input: string | File | Uint8Array) => Promise; /** * Browser implementation of QR code library wrapper */ export declare class BrowserQrCodeLib implements QrCodeLib { private qrCodeModule; /** * Gets the QR code module, loading it if necessary * @returns Promise that resolves to the QR code module */ private getQrCodeModule; /** * @inheritdoc */ toDataURL(text: string): Promise; getImageDataFromInput: (input: string | File | Uint8Array) => Promise; }