import React from 'react'; import { SelectProps as MuiSelectProps } from '@mui/material'; export interface ErkSmartSelectProps extends Omit { /** Currently selected value */ value?: any; /** The array of options to display */ options?: any[]; /** If the input is loading */ loading?: boolean; /** function called when value changes */ onChange?: (value: any) => void; /** Strig to place in the label */ label: string; /** The helper Text to display */ helperText?: string; /** The icon to display */ IconComponent?: React.ElementType; /** If the options are searchable */ searchable?: boolean; /** Function to determine the currently selected option */ getOptionSelected?: (option: any, value: any) => boolean; /** Function to determine the current value in string format */ getValueString?: (value: any) => string; /** If input is readOnly */ readOnly?: boolean; onFocus?: React.FocusEventHandler; } export default function ErkSmartSelect({ options, value, onChange, label, getValueString, loading, getOptionSelected, IconComponent, size, disabled, readOnly, searchable, inputRef, ...others }: ErkSmartSelectProps): JSX.Element;