/** @jsxImportSource react */ import type { RenderingContext } from "../../ui/RenderingContext"; import type { Instance } from "../../ui/Instance"; import { Field, FieldConfig, FieldInstance } from "./Field"; import { BooleanProp, Prop, StringProp } from "../../ui/Prop"; export interface RadioConfig extends FieldConfig { /** Selected value. If the value is equal to `option`, the radio button appears checked. */ value?: Prop; /** Selected value. If the value is equal to `option`, the radio button appears checked. */ selection?: Prop; /** Value to be written into `value` if radio button is clicked. */ option?: Prop; /** Defaults to `false`. Used to make the field read-only. */ readOnly?: BooleanProp; /** Text description. */ text?: StringProp; /** Base CSS class to be applied to the field. Defaults to `radio`. */ baseClass?: string; /** Use native radio HTML element. Default is `false`. */ native?: boolean; /** Set to `true` to make the radio initially selected. */ default?: boolean; /** Custom validation function. */ onValidate?: string | ((value: number | string | boolean, instance: Instance, validationParams: Record) => unknown); } export declare class Radio extends Field { selection?: Prop; option?: Prop; native?: boolean; default?: boolean; value?: Prop; constructor(config?: RadioConfig); declareData(...args: Record[]): void; init(): void; formatValue(context: RenderingContext, { data }: Instance): React.ReactNode; prepareData(context: RenderingContext, instance: FieldInstance): void; renderValue(context: RenderingContext, { data }: FieldInstance): React.ReactNode; renderWrap(context: RenderingContext, instance: FieldInstance, key: string, content: React.ReactNode): React.ReactElement; renderNativeCheck(context: RenderingContext, instance: Instance): React.ReactElement; renderCheck(context: RenderingContext, instance: FieldInstance): React.ReactElement; renderInput(context: RenderingContext, instance: FieldInstance, key: string): React.ReactElement; handleClick(e: React.MouseEvent, instance: Instance): void; handleChange(e: React.ChangeEvent | React.MouseEvent, instance: Instance): void; } //# sourceMappingURL=Radio.d.ts.map