import type { Editor } from "@tiptap/react"; /** * The px size the selection renders at while the run carries no `font_size` of * its own: the closest ancestor block that sets one, then the document base, * then the tier preset. * * The bubble menu shows this as an editable placeholder, so the size control is * never blank. "Closest ancestor wins" is the same order the canvas resolves in * — each block sets the tier CSS variable on its own wrapper — so a paragraph * inside a sized quote reports the quote's size. * * Exported for tests: the walk is the only part of this hook that isn't a thin * wrapper over `editor.isActive`. */ export declare const resolveSelectionFontSize: (editor: Editor, documentFontSize: number | null, documentLineHeight: number | null) => number; export declare const useTextmenuStates: (editor: Editor | null) => { isBold: boolean; isItalic: boolean; isUnderline: boolean; isStrike: boolean; isAlignLeft: boolean; isAlignCenter: boolean; isAlignRight: boolean; isAlignJustify: boolean; isQuote: boolean; isOrderedList: boolean; isUnorderedList: boolean; isLink: boolean; isHeading: boolean; currentColor: string | undefined; currentFontSize: number | undefined; /** What the selection renders at while `currentFontSize` is unset. */ inheritedFontSize: number | undefined; shouldShow: ({ editor }: { editor: Editor; }) => boolean; };