import React from "react"; import { IFieldContext } from "../../../constants"; import { IBaseDropdownProps } from "../BaseDropdown"; import { IFieldProps } from "../Field"; import { ISelectOption } from "./types"; type TSelectValue = string | number | boolean | object; export interface ISelectProps extends IFieldContext, Partial { value?: V; controlled?: boolean; name?: T; options: ISelectOption[]; optionGroups?: G[]; onBlur?: () => void; onChange: (value?: V) => void; onSearch?: (newSearch: string) => void; pattern?: RegExp; disabled?: boolean; loading?: boolean; trackName: string; trackData?: object; placeholder?: string; children?: (option: ISelectOption, place: "dropdown" | "input") => JSX.Element; noResults?: React.ReactNode; filterable?: boolean; filterOptions?: (options: ISelectOption[], search: string) => ISelectOption[]; getOptionKey?: (option: ISelectOption) => React.Key; isOptionEqualToValue?: (optionValue: V, currentValue: V | undefined) => boolean; } declare const _default: (props: ISelectProps & IFieldProps) => React.JSX.Element; export default _default;