import type { EventBus } from "../../core/event/EventBus";
export interface ToolbarContext {
    eventBus: EventBus;
    execute(id: string): void;
    focus(): void;
}
export type ToolbarItemType = "button" | "menu" | "separator";
export interface ToolbarItemBase {
    /** 全局唯一 id，用于排序与覆盖 */
    id: string;
    type?: ToolbarItemType;
    /** 移动端收进「更多」菜单 */
    mobileOverflow?: boolean;
    /** SVG 字符串，未配置时按 id 回退默认图标 */
    icon?: string;
}
export interface ToolbarButtonItem extends ToolbarItemBase {
    type?: "button";
    label: string;
    title?: string;
    onClick?: (ctx: ToolbarContext) => void;
}
export interface ToolbarMenuItem extends ToolbarItemBase {
    type: "menu";
    label: string;
    title?: string;
    children: ToolbarItem[];
}
export interface ToolbarSeparatorItem extends ToolbarItemBase {
    type: "separator";
}
export type ToolbarItem = ToolbarButtonItem | ToolbarMenuItem | ToolbarSeparatorItem;
//# sourceMappingURL=ToolbarItem.d.ts.map