import React, { CSSProperties, FunctionComponentElement } from 'react'; export declare type QRPropsCanvas = QRProps & React.CanvasHTMLAttributes; export declare type QRPropsSvg = QRProps & React.SVGAttributes; export declare const QRCodeTypes: ["canvas", "svg"]; export declare type QRCodeType = typeof QRCodeTypes[number]; export declare const QRCodeStatus: ["active", "expired", "loading"]; export declare type QRCodeStatus = typeof QRCodeStatus[number]; export declare const QRCodeErrorLevels: ["L", "M", "Q", "H"]; export declare type QRCodeErrorLevel = typeof QRCodeErrorLevels[number]; interface ImageSettings { src: string; height: number; width: number; excavate: boolean; x?: number; y?: number; } export interface QRProps { value?: string; type?: QRCodeType; size?: number; style?: CSSProperties; color?: string; bgColor?: string; bordered?: boolean; imageSettings?: ImageSettings; } export interface QRCodeProps extends QRProps { className?: string; prefixCls?: string; icon?: string; iconSize?: number; status?: QRCodeStatus; errorLevel?: QRCodeErrorLevel; children?: React.ReactNode; onRefresh?: () => void; } declare const QRCode: { (props: QRCodeProps): FunctionComponentElement; displayName: string; }; export default QRCode;