import { HTMLProps } from 'react'; import * as React from 'react'; import { SelectableValue } from '@grafana/data'; /** @internal * Should be used only internally by Segment/SegmentAsync which can guarantee that SegmentSelect is hidden * when a value is selected. See comment below on closeMenuOnSelect() */ export interface Props extends Omit, 'value' | 'onChange'> { value?: T | SelectableValue; options: Array>; onChange: (item: SelectableValue) => void; /** * If provided - AsyncSelect will be used allowing to reload options when the value in the input changes */ loadOptions?: (inputValue: string) => Promise>>; onClickOutside: () => void; width: number; noOptionsMessage?: string; allowCustomValue?: boolean; /** * If true, empty value will be passed to onChange callback otherwise using empty value * will work as canceling and using the previous value */ allowEmptyValue?: boolean; placeholder?: string; } /** @internal */ export declare function SegmentSelect({ value, placeholder, options, onChange, onClickOutside, loadOptions, width: widthPixels, noOptionsMessage, allowCustomValue, allowEmptyValue, ...rest }: React.PropsWithChildren>): import("react/jsx-runtime").JSX.Element;