import { Ctx } from '@milkdown/kit/ctx'; /** Toolbar item shape expected by Crepe formatting group (icon, active, onRun). */ export type FormattingToolbarItem = { icon: string; active: (ctx: Ctx) => boolean; onRun: (ctx: Ctx) => void; }; /** * Add heading (H1–H6) and list (bullet, ordered) toolbar items to the formatting group. * Call from Crepe Toolbar buildToolbar with the result of builder.getGroup('formatting'). * * **Toolbar CSS coupling:** `theme/overrides.css` hides heading/list/grammar via * `data-toolbar-item` when the selection is in a table cell * (`data-bf-formatting-toolbar-table-cell` on `body`). */ export declare function addFormattingToolbarItems(formattingGroup: { addItem: (key: string, item: FormattingToolbarItem) => unknown; }, options?: { highlight?: boolean; }): void;