import { EventEmitter } from '../../stencil-public-runtime'; import { RadioObject } from './radio'; import { Validator, ValidatorEntry } from '../../validators'; /** * Radios provide a set of options for a single response. */ export declare class GcdsRadios { el: HTMLElement; internals: ElementInternals; private shadowElement?; private initialValue?; private optionsArr; private radioTitle; _validator: Validator; /** * Props */ /** * Options to render radio buttons */ options: string | Array; validateOptions(): void; /** * The `name` attribute for the radios, used to group radio elements together */ name: string; validateName(): void; /** * If true, the input will be focused on component render */ autofocus: boolean; /** * The ID of the form that the radios belong to. */ form?: string; /** * Label or legend for the group of radio elements */ legend: string; validateLegend(): void; /** * Specifies if a form field is required or not. */ required: boolean; /** * Hint displayed below the label and above the radio elements */ hint: string; /** * Set this to display an error message for invalid radios */ errorMessage: string; validateErrorMessage(): void; /** * Specifies if an input element is disabled or not. */ disabled: boolean; /** * Default value for the element */ value: string; validateValue(): void; /** * Read-only property of the input, returns a ValidityState object that represents the validity states this element is in. */ get validity(): ValidityState; /** * Array of validators */ validator: Array>; validateValidator(): void; /** * Set event to call validator */ validateOn: 'blur' | 'submit' | 'other'; /** * Specifies if the legend is hidden or not. */ hideLegend?: boolean; /** * Specifies if the radio is invalid. */ hasError: boolean; /** * Set additional HTML attributes not available in component properties */ inheritedAttributes: Object; /** * Language of rendered component */ lang: string; /** * State to track validation on properties * Contains a list of properties that have an error associated with them */ errors: Array; /** * Call any active validators */ validate(): Promise; /** * Check the validity of gcds-radios */ checkValidity(): Promise; /** * Get validationMessage of gcds-radios */ getValidationMessage(): Promise; /** * Events */ /** * Emitted when radios has been changed as a direct result of a user action (a radio option has been selected). Contains new value in event detail */ gcdsInput: EventEmitter; /** * Emitted when a radios option is checked (but not when unchecked). Contains new value in event detail */ gcdsChange: EventEmitter; /** * Emitted when radios has received focus */ gcdsFocus: EventEmitter; /** * Emitted when the radios has lost focus */ gcdsBlur: EventEmitter; private onBlur; private onBlurValidate; /** * Emitted when radios has passed validation */ gcdsValid: EventEmitter; /** * Emitted when radios has a validation error */ gcdsError: EventEmitter; submitListener(e: any): void; formResetCallback(): void; formStateRestoreCallback(state: any): void; /** * Update gcds-input's validity using internal input */ private updateValidity; watchLang(newValue: any, oldValue: any): void; private handleInput; private validateRequiredProps; componentWillLoad(): Promise; componentDidUpdate(): Promise; componentDidLoad(): Promise; render(): any; }