import { HTMLAttributes, ReactNode } from 'react';
import { QRCodeErrorLevel, QRCodeStatus, ShapeType, SurfaceThemeType } from '../const/types.cjs';
export interface QRCodeRef {
download: (fileName?: string) => Promise;
}
export interface QRCodeProps extends Omit, "children" | "defaultValue" | "defaultChecked"> {
value: string;
size?: number;
colorDark?: string;
colorLight?: string;
bordered?: boolean;
shape?: ShapeType;
theme?: SurfaceThemeType;
status?: QRCodeStatus;
logo?: string;
logoSize?: number;
margin?: number;
logoRadius?: number;
logoBorder?: boolean;
errorLevel?: QRCodeErrorLevel;
loadingContent?: ReactNode;
expiredContent?: ReactNode;
scannedContent?: ReactNode;
onRefresh?: () => void;
}
declare const QRCode: import('react').ForwardRefExoticComponent>;
export type { QRCodeErrorLevel, QRCodeStatus } from '../const/types.cjs';
export default QRCode;