declare module 'qrcode' { export type QRCodeErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H' export type QRCodeToDataURLOptions = { errorCorrectionLevel?: QRCodeErrorCorrectionLevel margin?: number width?: number scale?: number } export function toDataURL( text: string, options?: QRCodeToDataURLOptions, ): Promise const QRCode: { toDataURL: typeof toDataURL } export default QRCode }