import { HTMLProps } from 'react'; import * as React from 'react'; import { type AsyncState } from 'react-use/lib/useAsync'; import { SelectableValue } from '@grafana/data'; import { SegmentProps } from './types'; export interface SegmentAsyncProps extends SegmentProps, Omit, 'value' | 'onChange'> { value?: T | SelectableValue; loadOptions: (query?: string) => Promise>>; /** * If true options will be reloaded when user changes the value in the input, * otherwise, options will be loaded when the segment is clicked */ reloadOptionsOnChange?: boolean; onChange: (item: SelectableValue) => void; noOptionMessageHandler?: (state: AsyncState>>) => string; inputMinWidth?: number; } /** * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-segmentasync--docs */ export declare function SegmentAsync({ value, onChange, loadOptions, reloadOptionsOnChange, Component, className, allowCustomValue, allowEmptyValue, disabled, placeholder, inputMinWidth, inputPlaceholder, autofocus, onExpandedChange, noOptionMessageHandler, ...rest }: React.PropsWithChildren>): import("react/jsx-runtime").JSX.Element;