import { Dispatch, Key, LegacyRef, MutableRefObject, ReactNode, SetStateAction } from 'react'; export type AnyObject = Record; export type SelectValueType = string | AnyObject; export type EmptyArrayType = any[]; export type ValueToStringType = (value: T) => string; export type CompareType = ValueToStringType; export type DataKeyType = (value: T) => Key; export type SearchType = (name: ReactNode, searchString: string) => boolean; export interface OnChangeArgs { value: V; event: E; options: O; } export type OnChangeHandler = (args: O extends null ? Omit, 'options'> : OnChangeArgs>) => void; export type ReactRefType = LegacyRef | Dispatch | undefined>>;