import type { Ctx } from '@milkdown/kit/ctx'; import type { ToolbarFeatureConfig } from '.'; import type { KeymapRef } from '../../utils/keyboard-shortcut'; export type ToolbarItem = { active: (ctx: Ctx) => boolean; icon: string; label?: string; shortcut?: string; ariaKeyshortcuts?: string; keymap?: KeymapRef; }; export declare function getGroups(config?: ToolbarFeatureConfig, ctx?: Ctx): { key: string; label: string; items: Omit<{ index: number; key: string; onRun?: (ctx: Ctx) => void; } & ToolbarItem, "index">[]; }[]; //# sourceMappingURL=config.d.ts.map