import { ReactNode } from "react";
import { Control, FieldValues, Path } from "react-hook-form";
export type SearchOption = {
    id: string | number;
    label: string;
    colorLight?: string;
    colorDark?: string;
};
export interface FormSearchSelectProps<TFieldValues extends FieldValues = FieldValues> {
    control: Control<TFieldValues>;
    name: Path<TFieldValues>;
    label?: string;
    options: SearchOption[];
    placeholder?: string;
    helperText?: string;
    noOptionLabel?: string;
    required?: boolean;
    fullWidth?: boolean;
    disabled?: boolean;
    multiple?: boolean;
    onCreate?: (label: string) => Promise<SearchOption | null | undefined> | SearchOption | null | undefined;
    createPrefix?: string;
    onManage?: () => void;
    manageText?: string;
    manageHelper?: string;
    className?: string;
    autoFocus?: boolean;
    renderOptionLeading?: (option: SearchOption) => ReactNode;
    onEdit?: (option: SearchOption) => void;
}
