import { UiElement } from '../shared/element.js'; import type { RadioLabelPosition } from './radio-shared.js'; /** * Carbon-style radio button group. Holds `` or `` options. * * Keyboard (WAI-ARIA APG): Tab enters on the checked (or first) option, arrow keys * move and select, Space selects. Form-associated: submits the checked `value`. * `readonly` keeps the value (and submits it); arrows still move focus so options can * be read, but nothing changes. `warn` shows a non-blocking warning. * `label-position="left"` (Carbon RadioButtonGroup `labelPosition`) puts every radio's text before its circle; a * vertical group then lines the circles up at its end, as wide as its widest option. A radio's own `label-position` * wins over the group's. * * State on the host for styling: `data-show-error` while the error shows, `data-show-warn` while the * warning shows. * * @cssstate show-error - While its error message shows (also `[data-show-error]`) * @cssstate show-warn - While its warning message shows (also `[data-show-warn]`) * @slot - `` options * @slot label - Label content with markup; the `label` attribute is the plain-text fallback * @slot helper-text - Helper text with markup (links, bold); overrides `helper-text` * @slot warn-text - Warning text shown while `warn`; overrides `warn-text` * @slot invalid-text - Error text shown while invalid; overrides `invalid-text` * @fires change - When the user picks an option * @csspart base - The group box holding the radios * @csspart label - The group label * @csspart status-icon - The error / warning icon * @csspart helper-text - The helper line * @csspart warning-text - The warning line * @csspart warn-text - Same line as `warning-text` (named after the `warn-text` attribute / slot) * @csspart error-text - The error line * @csspart invalid-text - Same line as `error-text` (named after the `invalid-text` attribute / slot) */ export declare class UiRadioGroup extends UiElement { static hostStates: readonly string[]; static readonly formAssociated = true; static readonly styles: import("lit").CSSResult[]; /** Group label (rendered like a fieldset legend). */ label: string; private readonly localize; /** Keep the group label for screen readers but don't show it. */ hideLabel: boolean; /** Reflected: form-associated elements submit under the `name` attribute. */ name: string; value: string; orientation: 'vertical' | 'horizontal'; /** Carbon `labelPosition`: `left` puts each radio's text before its circle (default `right`, after it). */ labelPosition: RadioLabelPosition; /** Disables the control; a disabled `
` ancestor does the same. */ disabled: boolean; /** Blocks form submission while the field is empty. */ required: boolean; /** Shows and submits the value but blocks changes. */ readonly: boolean; /** Helper text under the field, shown while there is no error or warning. */ helperText: string; /** Error text shown while `invalid` or while the field fails validation. */ invalidText: string; /** Forces the error state, e.g. after server-side validation. */ invalid: boolean; /** Non-blocking warning; shown when there is no error. */ warn: boolean; /** Text of the warning shown while `warn`. */ warnText: string; /** Error text for an empty required group. */ requiredText: string; private touched; /** Disabled, reset defaults, validation on submit and the name given from outside (shared by the form fields). */ private readonly formControl; private readonly radios; /** Message from `setCustomValidity()`; '' = none. */ private customValidityMessage; /** Like `.setCustomValidity()`: a non-empty message makes the field invalid (and is shown as its error once touched) until cleared with ''. */ setCustomValidity(message: string): void; private readonly groupId; private defaultValue; connectedCallback(): void; disconnectedCallback(): void; get form(): HTMLFormElement | null; get validationMessage(): string; /** Whether the field takes part in constraint validation (not while disabled), as natively. */ get willValidate(): boolean; /** The `