import { EventEmitter } from '../../stencil-public-runtime'; import { FormControlState } from '../../utils/form-control'; /** * State the group publishes for its items (pulled by items that upgrade after * the group, see seki-radio-group-item). */ export interface RadioGroupItemsContext { value?: string; disabled: boolean; } /** * @component seki-radio-group * @description A set of radio buttons where only one can be selected at a time. * Contains seki-radio-group-item children for individual options. * @example * * Option 1 * Option 2 * */ export declare class SekiRadioGroup { el: HTMLElement; internals: ElementInternals; private formControl?; /** * Controlled value. When provided, component operates in controlled mode. */ value?: string; /** * Initial value for uncontrolled mode. Ignored if value prop is provided. */ defaultValue?: string; /** * Form field name for form integration. */ name?: string; /** * Disables all radio items in the group. */ disabled: boolean; /** * Marks the group as required for form validation. */ required: boolean; /** * Orientation of the radio group (affects keyboard navigation). */ orientation: 'horizontal' | 'vertical'; /** * Accessible label for the radio group. */ ariaLabel?: string; /** * Internal value for uncontrolled mode. */ internalValue?: string; /** * Emitted when the selected value changes. */ sekiChange: EventEmitter<{ value: string; }>; /** * Internal: notifies items that the published group state changed. * @internal */ contextChange: EventEmitter; componentWillLoad(): void; handleFormStateChange(): void; formResetCallback(): void; formDisabledCallback(disabled: boolean): void; formStateRestoreCallback(state: FormControlState): void; /** * Mirror an externally-assigned `value` onto the rendered selection. This is * what keeps controlled usage working: a consumer writing `el.value = x` (or * writing the old value back to reject a selection) always wins. */ valueChanged(newValue: string | undefined): void; /** * Get current selected value */ private get selectedValue(); /** * Handle radio item selection */ handleRadioSelect(event: CustomEvent<{ value: string; }>): void; /** * Handle keyboard navigation */ handleKeyDown(event: KeyboardEvent): void; /** * Get all radio item children */ private getRadioItems; /** * Update child items with current selection state */ private publish; private updateChildItems; componentDidLoad(): void; componentDidUpdate(): void; render(): any; } declare global { interface HTMLSekiRadioGroupItemElement extends HTMLElement { value: string; checked: boolean; disabled: boolean; setFocus(): Promise; } }