import { PropsWithChildren, type ComponentRef, type ForwardRefExoticComponent, type RefAttributes } from 'react'; import { StyledProp, StyledProps, WithStyledProps } from '@mapples/style'; import { View, ViewProps } from 'react-native'; import { SvgProps } from 'react-native-svg'; /** * Props for the QRCode component. * * @public */ export type QRCodeProps = PropsWithChildren, 'styled'> & { /** Styling configuration for the QR code container and SVG */ styled?: StyledProps & { /** SVG-specific styling */ styleSvg?: StyledProp; }; /** The value to encode as a QR code */ value?: string; /** Size of the QR code (width and height) */ size?: number; /** Background color of the QR code */ backgroundColor?: string; /** Foreground color of the QR code */ color?: string; /** Error correction level */ ecl?: 'L' | 'M' | 'Q' | 'H'; /** Logo to display in the center of the QR code */ logo?: string; /** Size of the logo */ logoSize?: number; /** Margin around the QR code */ quietZone?: number; }>; /** * A customizable QR code component with built-in styling support. * * The QRCode component renders a QR code using react-native-svg. * It supports customizable styling through the @mapples/style system. * * @example * ```tsx * * ``` * * @public */ declare const QRCode: ForwardRefExoticComponent>>; export default QRCode; //# sourceMappingURL=QRCode.d.ts.map