import { EventEmitter } from '../../stencil-public-runtime'; import { ISelectOption, ISelectMultiOptionsEvents, IMultiSelectDropdown } from '../../types'; export interface ISelectSingleOption extends Pick { options?: ISelectSingleOptions; } export type ISelectSingleOptions = Record; export interface ISingleSelectDropdown extends Omit { /** (optional) The value of the selected option */ selectedOption?: string; /** (optional) The object with the dropdown options */ options?: ISelectSingleOptions; /** (optional) Externally filtered dropdown options. When defined, these override the default local search results. */ filteredOptions?: ISelectSingleOptions; /** (optional) If `false` the search text field is not auto-focused. Default `true`. */ autoFocus?: boolean; } export interface ISingleSelectDropdownEvents extends Omit { /** Emitted when the dropdown open state changes */ openStateChange: EventEmitter; /** Emitted when there's a click outside the dropdown's bondaries */ clickOutside: EventEmitter; }