import type { IconName } from "@prismicio/editor-ui"; import { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes"; import type { ChainedCommands, Editor, Range } from "@tiptap/core"; export type MenuItem = { nodeType: RichTextNodeType; icon: IconName; isActive: (editor: Editor) => boolean; runCommands: (editor: Editor, options?: RunCommandsOptions) => boolean; } & ({ shortText: string; text: string; } | { shortText?: undefined; text?: undefined; }); type RunCommandsOptions = { can?: boolean; deleteRange?: Range; }; export declare const ALL_NODE_ITEMS: readonly MenuItem[]; export declare const ALL_MARK_ITEMS: readonly MenuItem[]; export declare const ALL_EXTRA_ITEMS: readonly MenuItem[]; export declare function createRunCommandsFn(chainCommands: (commands: ChainedCommands, editor: Editor) => ChainedCommands): (editor: Editor, options?: RunCommandsOptions) => boolean; export declare function filterMenuItems(menuItems: readonly MenuItem[], nodeTypes: readonly string[]): MenuItem[]; export {};