import { DefaultSuggestionItem } from "@blocknote/core";
import { JSX } from "react";
/**
 * 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;
    size?: "default" | "small";
};
/**
 * 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;
};
