import type { ImageData } from 'canvas'; import type { QrCodeLib } from '../../interfaces/QrCodeLib.mjs'; /** * Gets the ImageData from an image, for Node.js environments. * This ImageData is then further processed to get QR codes. * @param inputImage - The image to get the ImageData from. * @returns A promise that resolves to the ImageData. */ export declare const getImageDataFromInput: (inputImage: string | File | Uint8Array) => Promise; /** * Node.js implementation of QR code library wrapper */ export declare class NodeQrCodeLib 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; /** * @inheritdoc */ getImageDataFromInput(imageInput: string | File | Uint8Array): Promise; }