import type { ToolbarVariant } from './types.js'; /** A single toolbar control. */ export interface ToolbarItem { /** Stable action id, consumed by the toolbar to run editor commands. */ action: string; /** Phosphor icon name (``). */ icon: string; /** Accessible label / tooltip (English default). */ label: string; /** `toggle` reflects active state via aria-pressed; `button` is a one-shot; * `dropdown` renders a button that opens a sub-menu of options; * `color` renders a button that opens a color palette popover; * `popover` renders a button that opens an inline input form; * `grid` renders a table grid picker; * `listpicker` is a split button: main area toggles the list, a caret * opens a visual grid of marker styles. */ type: 'toggle' | 'button' | 'dropdown' | 'color' | 'popover' | 'grid' | 'listpicker'; /** Optional command argument (e.g. heading level). */ payload?: unknown; /** Sub-options for `dropdown` type items. */ options?: ToolbarDropdownOption[]; } /** An option inside a dropdown toolbar item. */ export interface ToolbarDropdownOption { action: string; label: string; icon?: string; payload?: unknown; } /** Separator marker between toolbar button groups. */ export interface ToolbarSeparator { type: 'separator'; } /** A toolbar entry is either a control or a separator. */ export type ToolbarEntry = ToolbarItem | ToolbarSeparator; /** Resolve a (non-auto) toolbar variant to its ordered list of entries. */ export declare function toolbarItems(variant: Exclude): ToolbarEntry[]; /** Table context items — shown when the cursor is inside a table. */ export declare const TABLE_CONTEXT_ITEMS: ToolbarEntry[]; /** Color palette used for textColor and highlight pickers. */ export declare const COLOR_PALETTE: string[]; //# sourceMappingURL=toolbar-config.d.ts.map