import { type RefCallback, type JSX } from 'react'; import * as React from 'react'; import { type SelectableValue } from '@grafana/data'; import { ToggleAllState } from './types'; interface ToggleAllOptions { state: ToggleAllState; selectAllClicked: () => void; selectedCount?: number; } interface SelectMenuProps { maxHeight: number; innerRef: RefCallback; innerProps: {}; selectProps: { toggleAllOptions?: ToggleAllOptions; components?: { Option?: (props: React.PropsWithChildren>) => JSX.Element; }; }; } export declare function SelectMenu({ children, maxHeight, innerRef, innerProps, selectProps, }: React.PropsWithChildren): JSX.Element; export declare namespace SelectMenu { var displayName: string; } interface VirtualSelectMenuProps { children: React.ReactNode; innerRef: React.Ref; focusedOption: T; innerProps: JSX.IntrinsicElements['div']; options: T[]; maxHeight: number; selectProps: { toggleAllOptions?: ToggleAllOptions; components?: { Option?: (props: React.PropsWithChildren>) => JSX.Element; }; }; } export declare function VirtualizedSelectMenu({ children, maxHeight, innerRef: scrollRef, options, selectProps, focusedOption, }: VirtualSelectMenuProps): JSX.Element | null; export declare namespace VirtualizedSelectMenu { var displayName: string; } interface SelectMenuOptionProps { isDisabled: boolean; isFocused: boolean; isSelected: boolean; indeterminate?: boolean; innerProps: JSX.IntrinsicElements['div']; innerRef: RefCallback; renderOptionLabel?: (value: SelectableValue) => JSX.Element; data: SelectableValue; selectProps?: { showFocusRing?: boolean; }; } export declare function SelectMenuOptions({ children, data, innerProps, innerRef, isFocused, isSelected, renderOptionLabel, selectProps, }: React.PropsWithChildren>): JSX.Element; export declare namespace SelectMenuOptions { var displayName: string; } export {};