export interface ToolbarButtonItem { type: 'button'; icon: React.ReactNode; tooltip: string; action: () => void; disabled?: boolean; /** 激活状态:true 时按钮显示高亮样式(用于切换类按钮,如自动换行、HTML 预览等) */ active?: boolean; ariaKeyshortcuts?: string; } export interface ToolbarTextItem { type: 'text'; content: string; minWidth?: string; } export type ToolbarItem = ToolbarButtonItem | ToolbarTextItem; export interface ToolbarGroup { items: ToolbarItem[]; } //# sourceMappingURL=toolbar.types.d.ts.map