import React from "react";
import type { SelectOptionBase as MultiSelectOptionBase } from "src/components/Select/types";
export declare const CREATE_PREFIX = "__create__:";
interface UseCreatableItemsConfig {
    isCreatable: boolean;
    isGrouped: boolean;
    flatOptions: MultiSelectOptionBase[];
    selectedValues: string[];
    baseUiItems?: string[] | {
        label: string;
        items: string[];
    }[];
    onCreateOption?: (inputValue: string) => void;
    onChange?: (values: string[]) => void;
    onAsyncInputChange?: (value: string) => void;
    children?: React.ReactNode;
}
interface UseCreatableItemsReturn {
    inputValue: string;
    showCreateOption: boolean;
    effectiveItems: string[] | {
        label: string;
        items: string[];
    }[] | undefined;
    creatableFilter: (itemValue: string, query: string, itemToString?: (v: string) => string) => boolean;
    handleInputValueChange: (value: string) => void;
    handleValueChange: (next: string[] | null) => void;
}
export declare function useCreatableItems({ isCreatable, isGrouped, flatOptions, selectedValues, baseUiItems, onCreateOption, onChange, onAsyncInputChange, children, }: UseCreatableItemsConfig): UseCreatableItemsReturn;
export {};
