import { Editor } from '@tiptap/react'; /** * Reads the current editor state and returns the list of toggleable action * names (bold, italic, …) that are active at the current selection. * * @param editor - The live TipTap editor instance. * @returns Array of action name strings that are currently toggled on. */ export default function getActiveActions(editor: Editor): string[];