import type { VNode, VNodeChild } from 'vue'; import type { Locale } from '../locale'; export type QRStatus = 'active' | 'expired' | 'loading' | 'scanned'; export type StatusRenderInfo = { status: Exclude; locale: Locale['QRCode']; onRefresh?: () => void; }; export type StatusRender = (info: StatusRenderInfo) => VNodeChild; export type QRcodeStatusProps = { prefixCls: string; locale?: Locale['QRCode']; onRefresh?: () => void; statusRender?: StatusRender; status: StatusRenderInfo['status']; }; export default function QRcodeStatus({ prefixCls, locale, onRefresh, statusRender, status, }: QRcodeStatusProps): VNode;