import React from 'react'; import { SelectableValue } from '@grafana/data'; import { SelectCommonProps, MultiSelectCommonProps, SelectAsyncProps } from './types'; import { SelectBase } from './SelectBase'; export function Select(props: SelectCommonProps) { return ; } export function MultiSelect(props: MultiSelectCommonProps) { // @ts-ignore return ; } interface AsyncSelectProps extends Omit, 'options'>, SelectAsyncProps { // AsyncSelect has options stored internally. We cannot enable plain values as we don't have access to the fetched options value?: SelectableValue; invalid?: boolean; } export function AsyncSelect(props: AsyncSelectProps) { return ; } interface AsyncMultiSelectProps extends Omit, 'options'>, SelectAsyncProps { // AsyncSelect has options stored internally. We cannot enable plain values as we don't have access to the fetched options value?: Array>; } export function AsyncMultiSelect(props: AsyncMultiSelectProps) { // @ts-ignore return ; }