import { EventEmitter } from '../../stencil-public-runtime'; /** One option. 5.x string options are read as `{ id: text, text }`. */ export interface SelectOption { id: string | number; text: string; } /** Internal: a parsed option plus, for an object option, the original entry (`source`), so * `selectChanged` can emit it with its extra fields, as 3.x did. Never sent on `selectionChange`, * and not part of the public `SelectOption` type. */ interface ParsedOption extends SelectOption { source?: SelectOption; } export declare class Ddaselect { /** Label shown above the field. The trigger button is named by the label and its current text. */ label: string; /** Options: a JSON array, or an array property, of strings (`["Dubai","Sharjah"]`) or 3.x `{ id, text }` objects (`[{"id":1,"text":"Dubai"}]`). Other entries are ignored. Invalid JSON shows "No options available". */ options: string | Array; /** The selected option: its id, or its text. For string options the id is the text. Updated to the picked option's id (as a string) when the user picks one. Mutable: the component assigns it. */ selected: string; /** Disables the select: the list does not open and options cannot be picked. */ disabled: boolean; /** Validation state. `error` shows the error styling. */ error?: string; /** Error text shown under the field. Also sets `aria-invalid` on the trigger. */ error_message: string; /** Helper text shown under the field. */ helper_text: string; is_open: boolean; /** Field size. `small` gives the compact field; leave empty for the default size. */ size?: string; /** Extra CSS classes added to the field container. */ custom_class?: string; /** Theme override class for the field, e.g. `light-mode`. */ component_mode?: string; /** Accessible name of the trigger button and the option list. The list falls back to `label`. */ aria_label?: string; /** `id` of the trigger button. Also used to build the ids of the label, list, helper text and error message, so keep it unique. When it is not set, the component generates a unique id. */ button_id: string; /** `name` of the trigger button. */ toggle_button_name: string; /** `name` of each option button in the list. */ option_select_button_name: string; /** Text in the trigger when nothing is selected. Default: `Select an option`. */ placeholder: string; /** `name` sent in `selectBlurred`. Falls back to `button_id`. */ input_name: string; /** 3.x name of `aria_label`, used as the trigger's aria-label only when `label` is not set. `aria_label` wins when both are set; when `label` is set, `main_aria_label` is ignored and the trigger keeps its `aria-labelledby`. */ main_aria_label: string; /** 3.x name of `error` (the validation state class). `error` wins when both are set. */ validation_type: string; /** Emitted when the user picks an option other than the selected one, by mouse or keyboard. `detail.value` is the new `selected` value (the option id as a string); `detail.id` and `detail.text` are the option. */ selectionChange: EventEmitter<{ value: string; id: string | number; text: string; }>; /** 3.x event: emitted each time the user picks one, even if it is already selected. For a string * option this is `{ id, text }`; for an object option this is the original option object, extra * fields included, as 3.x did. */ selectChanged: EventEmitter; /** 3.x event: emitted when the trigger loses focus, with `{ name, value }` — `input_name` (or `button_id`) and the selected text. */ selectBlurred: EventEmitter<{ name: string; value: string; }>; el: HTMLElement; private pendingFocusIndex; private readonly fallbackId; private get triggerId(); private get labelId(); private get listboxId(); private get helperId(); private get errorId(); private get describedBy(); private get parsedOptions(); private findSelected; private get selectedOption(); private get triggerLabel(); private focusOption; private currentFocusedOptionIndex; private initialOptionIndex; toggleSelect(): void; private closeAndReturnFocus; onHostClick(event: MouseEvent): void; selectOption(option: ParsedOption): void; private onTriggerBlur; private onTriggerKeyDown; private onOptionKeyDown; componentDidRender(): void; render(): any; } export {};