import { EnumOption } from '@jsonforms/core'; import { ChangeEvent } from 'react'; /** * `value` is the current value, `options` is the list of options, `isNative` toggles native select, * and `nativeProps.onChange` is called when the value changes. Returns the props with the value array * of value/label pairs for each option. Null-valued options (the schema's empty member for a nullable * field) are dropped because Mantine option values must be primitives; the non-native select is * `clearable` instead, so clearing it is what produces the `null` a nullable schema allows. */ export declare function useSelectProps(value: string | string[] | undefined | null, options: EnumOption[], isNative?: boolean, { onChange }?: { onChange?: (value: string | undefined) => void; }): { data: EnumOption[]; value: string | string[]; onChange: (event: ChangeEvent) => void; searchable?: undefined; clearable?: undefined; } | { data: EnumOption[]; value: string | string[] | null; searchable: boolean; clearable: boolean; onChange?: undefined; };