import { Editor } from '@tiptap/react'; /** * Reads the text-align attribute of the current block and returns the * matching toolbar action string (e.g. "alignCenter"). * Defaults to "alignLeft" when no explicit alignment is set — paragraphs * are left-aligned by default in every browser. * * @param editor - The live TipTap editor instance. * @returns The active alignment action key (e.g. 'alignLeft', 'alignCenter'). */ export default function getActiveAlignment(editor: Editor): string;