import { Extension } from '@tiptap/core'; export interface PaginationOptions { /** Enable visual page boundaries (defaults to true). */ enabled: boolean; /** Inside-page area in pixels — calculated from page layout when not given. */ contentHeightPx: number | null; /** CSS pixel offset between consecutive page sheets (defaults to 32px). */ gap: number; } /** * Visually splits the editor surface into pages by measuring rendered block * heights and inserting "page boundary" widget decorations at each multiple of * the configured page height. Decorations are display-only — they don't change * the document model, so cursor positions, selections, undo/redo and exports * all behave identically. Hard `