import { ReactNode } from 'react';
import { SelectFieldProps } from '@chakra-ui/react';
import { Props, PropsValue, MultiValue } from 'chakra-react-select';

interface FieldOption {
    value: SelectFieldProps['value'] | boolean;
    label: string | ReactNode;
    group?: string;
    disabled?: boolean;
    invalid?: boolean;
}
interface SelectNextProps extends Omit<Props, 'onChange'> {
    name?: string;
    placeholder?: string;
    defaultValue?: PropsValue<FieldOption['value']>;
    isGroup?: boolean;
    isMulti?: boolean;
    max?: number;
    options: MultiValue<FieldOption>;
    onChange?: (newValue: PropsValue<FieldOption> | string) => void;
    onReset?: () => void;
}
declare const SelectNext: ({ name, placeholder, defaultValue, isGroup, isMulti, max, options, onChange, onBlur, onReset, classNames, components, styles, chakraStyles, ...otherProps }: SelectNextProps) => JSX.Element;

export { FieldOption, SelectNextProps, SelectNext as default };
