import { Editor } from '@tiptap/react'; /** * Inspects the current editor selection and returns the active typography style key. * Returns 'body' when the cursor is inside a plain paragraph (default). * Returns 'small' when the cursor is inside a paragraph with a fontSize:14 mark (Caption). * * @param editor - The live TipTap editor instance. * @returns The active style key (e.g. 'h1', 'body', 'small'). */ export default function getActiveStyle(editor: Editor): string;