import React from 'react'; export declare const useRadioModel: ((config?: (Partial<{ /** * The id of hint or error text associated with each radio. * * Do not set this when radios are wrapped in `FormFieldGroup.Input`. `FormFieldGroup.Input` * writes `aria-describedby="hint-{id}"` on each radio, and that value overrides * `aria-describedby` set on `RadioGroup`. Put the message in `FormFieldGroup.Hint`. * * ```tsx * * Choose Your Pizza Crust * * * * Deep dish * * * Thin * * * Deep dish is an extra $2.99. * * * ``` */ 'aria-describedby': string | undefined; /** * The common `name` passed to all Radio button children of the RadioGroup. This enables you to avoid specifying the `name` for each child. */ name: string; /** * The selected value of the RadioGroup. Providing this prop will cause the model be in a controlled state */ value: string | number | undefined; /** * `onChange` handler. Any `onChange` passed to children will be overwritten by this event so that there is only one per group. */ onChange(event: React.ChangeEvent): void; }> & {} & {}) | undefined) => { onChange: (event: React.ChangeEvent) => void; state: { value: string | number | undefined; name: string; 'aria-describedby': string | undefined; inputRef: React.MutableRefObject; }; events: {}; }) & import("@workday/canvas-kit-react/common").ModelExtras<{ /** * The id of hint or error text associated with each radio. * * Do not set this when radios are wrapped in `FormFieldGroup.Input`. `FormFieldGroup.Input` * writes `aria-describedby="hint-{id}"` on each radio, and that value overrides * `aria-describedby` set on `RadioGroup`. Put the message in `FormFieldGroup.Hint`. * * ```tsx * * Choose Your Pizza Crust * * * * Deep dish * * * Thin * * * Deep dish is an extra $2.99. * * * ``` */ 'aria-describedby': string | undefined; /** * The common `name` passed to all Radio button children of the RadioGroup. This enables you to avoid specifying the `name` for each child. */ name: string; /** * The selected value of the RadioGroup. Providing this prop will cause the model be in a controlled state */ value: string | number | undefined; /** * `onChange` handler. Any `onChange` passed to children will be overwritten by this event so that there is only one per group. */ onChange(event: React.ChangeEvent): void; }, {}, { value: string | number | undefined; name: string; 'aria-describedby': string | undefined; inputRef: React.MutableRefObject; }, {}, { onChange: (event: React.ChangeEvent) => void; state: { value: string | number | undefined; name: string; 'aria-describedby': string | undefined; inputRef: React.MutableRefObject; }; events: {}; }>; //# sourceMappingURL=useRadioModel.d.ts.map