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 buttons 5–12 when the selection is in a * table cell (`data-bf-formatting-toolbar-table-cell` on `body`). That assumes Crepe prepends * bold, italic, strikethrough (3), then this function adds highlight, H1–H6, bullet, ordered (9). * Change order here only if you update the nth-child range in overrides.css. */ export declare function addFormattingToolbarItems(formattingGroup: { addItem: (key: string, item: FormattingToolbarItem) => unknown; }): void;