UNPKG

@grafana/ui

Version:
9 lines (8 loc) 726 B
import { Registry, type SelectableValue } from '@grafana/data'; import { type ComboboxOption } from '../Combobox/types'; import { type FieldMatcherUIRegistryItem } from './types'; export declare const fieldMatchersUI: Registry<FieldMatcherUIRegistryItem<any>>; export declare function useFieldMatchersOptions(asComboboxOptions: true): Array<ComboboxOption<string>>; export declare function useFieldMatchersOptions(asComboboxOptions: false): Array<SelectableValue<string>>; export declare function useFieldMatchersOptions(asComboboxOptions?: undefined): Array<SelectableValue<string>>; export declare function useFieldMatchersOptions(asComboboxOptions: boolean): Array<ComboboxOption<string>> | Array<SelectableValue<string>>;