import { Extension } from '@tiptap/core'; export type PageSize = 'A3' | 'A4' | 'A5' | 'Letter' | 'Legal' | 'Tabloid' | 'Custom'; export type Orientation = 'portrait' | 'landscape'; export interface PageLayoutOptions { pageSize: PageSize; orientation: Orientation; /** Custom width when pageSize is 'Custom' (e.g. '210mm'). */ width?: string; /** Custom height when pageSize is 'Custom' (e.g. '297mm'). */ height?: string; margins: { top: string; bottom: string; left: string; right: string; }; } export declare const DEFAULT_PAGE_LAYOUT: PageLayoutOptions; declare module '@tiptap/core' { interface Commands { pageLayout: { setPageLayout: (options: Partial) => ReturnType; }; } } export declare const PageLayout: Extension;