import { JSXElementConstructor, ReactElement } from 'react'; import { FieldComponentProps } from '@cezembre/forms'; export interface SelectOption { value: V; element?: ReactElement | string | number; } export interface SelectOptionProps { option?: SelectOption; DefaultComponent?: JSXElementConstructor<{ value: V; }>; placeholder?: string; } export type SelectType = 'dark' | 'flat'; export interface SelectProps extends FieldComponentProps { label?: string; options?: SelectOption[]; DefaultComponent?: JSXElementConstructor<{ value: V; }>; canCancel?: boolean; type?: SelectType; instructions?: ReactElement | string; fullWidth?: boolean; onSearch?(search?: string): unknown; } export declare function Select({ value, error, warning, isActive, onFocus, onBlur, name, onChange, label, options, DefaultComponent, canCancel, instructions, type, fullWidth, onSearch, }: SelectProps): ReactElement;