import type { CommandItem as SlashCommandItem } from "@/core/extensions/SlashCommands";
import { type EditorFloatingOverlayPositionContext } from "@/react/hooks/useEditorFloatingOverlayPosition";
import type { EditorLocale } from "@/shared/locales";
import "./index.css";
interface CommandMenuProps {
    items: SlashCommandItem[];
    command: (item: SlashCommandItem) => void;
    locale: EditorLocale;
    selectedIndex: number;
    positionContext: EditorFloatingOverlayPositionContext;
    maxHeight: number;
    minHeight: number;
    /** 编辑器内 Portal 挂载容器：存在时优先使用 Portal 渲染。 */
    portalContainer?: HTMLDivElement | null;
}
/** Slash 命令菜单：负责渲染与滚动到当前选中项。 */
declare const CommandMenu: ({ items, command, locale, selectedIndex, positionContext, maxHeight, minHeight, portalContainer, }: CommandMenuProps) => import("react/jsx-runtime").JSX.Element | null;
export default CommandMenu;
