import { ChipGroupProps, SelectProps } from '@patternfly/react-core'; import { ControllerProps, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form'; import { ReactNode } from 'react'; type Variant = `${SelectVariant}`; export declare enum SelectVariant { single = "single", typeahead = "typeahead", typeaheadMulti = "typeaheadMulti" } export type SelectControlOption = { key: string; value: string; description?: string; }; export type OptionType = string[] | SelectControlOption[]; export type SelectControlProps = FieldPath> = Omit & UseControllerProps & { name: string; label?: string; options: OptionType; selectedOptions?: OptionType; labelIcon?: string | ReactNode; controller: Omit; onFilter?: (value: string) => void; variant?: Variant; isDisabled?: boolean; isFullWidth?: boolean; menuAppendTo?: string; placeholderText?: string; chipGroupProps?: ChipGroupProps; onSelect?: (value: string | string[], onChangeHandler: (value: string | string[]) => void) => void; }; export declare const isSelectBasedOptions: (options: OptionType) => options is SelectControlOption[]; export declare const isString: (option: SelectControlOption | string) => option is string; export declare const key: (option: SelectControlOption | string) => string; export declare const SelectControl: = FieldPath>({ variant, ...rest }: SelectControlProps) => import("react/jsx-runtime").JSX.Element; export {};