import { InputHTMLAttributes, ReactNode, Ref } from 'react';
import { FieldError, FieldValues, UseFormRegister } from 'react-hook-form';
import { ComponentColor, IComponentBaseProps, InputCustomColor, Size } from '../types';
export declare const RADIO = "radio";
export declare const SIZE_MAP: Record;
export declare const COLOR_MAP: {
primary: string;
secondary: string;
error: string;
info: string;
success: string;
warning: string;
accent: string;
neutral: string;
};
export declare const RADIO_MAP: {
primary: string;
secondary: string;
error: string;
info: string;
success: string;
warning: string;
accent: string;
neutral: string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
};
interface BaseRadioProps extends Omit, "size" | "placeholder" | "label">, IComponentBaseProps {
ref?: Ref;
color?: Exclude;
name: string;
size?: Size;
label?: ReactNode;
error?: FieldError;
labelPosition?: "left" | "right";
register?: UseFormRegister;
customColor?: InputCustomColor;
asButton?: boolean;
ariaLabel?: string;
}
interface ButtonRadioProps extends Omit {
asButton: true;
ariaLabel: string;
}
export type RadioProps = BaseRadioProps | ButtonRadioProps;
export {};