import * as React from "react"; import type { QRCodeErrorCorrectionLevel } from "qrcode"; export type QRCodeProps = Omit, "children"> & { value: string; src?: string; alt?: string; size?: number; margin?: number; errorCorrectionLevel?: QRCodeErrorCorrectionLevel; foreground?: string; background?: string; loadingFallback?: React.ReactNode; errorFallback?: React.ReactNode; onError?: (error: Error) => void; }; declare function QRCode({ value, src, alt, size, margin, errorCorrectionLevel, foreground, background, loadingFallback, errorFallback, onError, className, ...props }: QRCodeProps): React.JSX.Element; declare const QRCodeSvg: typeof QRCode; export { QRCode, QRCodeSvg };