import { DefaultSuggestionItem } from "blocknote-core-ts";
/**
 * Although any arbitrary data can be passed as suggestion items, the built-in
 * UI components such as `MantineSuggestionMenu` expect a shape that conforms to DefaultSuggestionItem
 */
export type DefaultReactSuggestionItem = Omit<DefaultSuggestionItem, "key"> & {
    icon?: JSX.Element;
};
/**
 * Props passed to a suggestion menu component
 */
export type SuggestionMenuProps<T> = {
    items: T[];
    loadingState: "loading-initial" | "loading" | "loaded";
    selectedIndex: number | undefined;
    onItemClick?: (item: T) => void;
};
