import { Extension, type Editor } from '@tiptap/core'; export declare const DOCUMENT_INDENT_STEP_PX = 24; export declare const MAX_DOCUMENT_INDENT_LEVEL = 8; export declare const DOCUMENT_RULER_INDENT_STEP_PX = 6; export declare const MAX_DOCUMENT_INDENT_PX: number; export declare const DOCUMENT_WORD_SINGLE_LINE_HEIGHT = 1.15; export interface DocumentParagraphIndent { left: number; right: number; firstLine: number; } export interface DocumentParagraphPagination { keepLines: boolean; keepWithNext: boolean; pageBreakBefore: boolean; widowControl: boolean; } export type DocumentParagraphPaginationUpdate = Partial; export type DocumentParagraphDirection = 'ltr' | 'rtl'; export type DocumentParagraphLineRule = 'auto' | 'exact' | 'atLeast'; export interface DocumentParagraphSpacing { before: number | null; after: number | null; lineHeight: string | null; lineRule: DocumentParagraphLineRule | null; } export interface DocumentFormattingCommandOptions { restoreFocus?: boolean; } declare module '@tiptap/core' { interface Commands { documentParagraphFormatting: { changeDocumentIndent: (direction: -1 | 1) => ReturnType; clearDocumentParagraphPagination: (options?: DocumentFormattingCommandOptions) => ReturnType; clearDocumentFormatting: () => ReturnType; setDocumentIndentLevel: (indentLevel: number, options?: DocumentFormattingCommandOptions) => ReturnType; setDocumentLineHeight: (lineHeight: string | null) => ReturnType; setDocumentParagraphDirection: (direction: DocumentParagraphDirection, options?: DocumentFormattingCommandOptions) => ReturnType; setDocumentParagraphIndent: (indent: DocumentParagraphIndent, options?: DocumentFormattingCommandOptions) => ReturnType; setDocumentParagraphPagination: (pagination: DocumentParagraphPaginationUpdate, options?: DocumentFormattingCommandOptions) => ReturnType; setDocumentParagraphSpacing: (spacing: DocumentParagraphSpacing, options?: DocumentFormattingCommandOptions) => ReturnType; }; } } export declare const DocumentParagraphFormatting: Extension; export declare function setDocumentLineHeight(editor: Editor, lineHeight: string | null): boolean; export declare function changeDocumentIndent(editor: Editor, direction: -1 | 1): boolean; export declare function canChangeDocumentIndent(editor: Editor, direction: -1 | 1): boolean; export declare function documentIndentLevel(editor: Editor): number; export declare function documentParagraphIndent(editor: Editor): DocumentParagraphIndent; export declare function setDocumentIndentLevel(editor: Editor, indentLevel: number, options?: DocumentFormattingCommandOptions): boolean; export declare function setDocumentParagraphIndent(editor: Editor, indent: DocumentParagraphIndent, options?: DocumentFormattingCommandOptions): boolean; export declare function documentParagraphPagination(editor: Editor): DocumentParagraphPagination; export declare function documentParagraphDirection(editor: Editor): DocumentParagraphDirection; export declare function setDocumentParagraphDirection(editor: Editor, direction: DocumentParagraphDirection, options?: DocumentFormattingCommandOptions): boolean; export declare function setDocumentParagraphPagination(editor: Editor, pagination: DocumentParagraphPaginationUpdate, options?: DocumentFormattingCommandOptions): boolean; export declare function clearDocumentParagraphPagination(editor: Editor, options?: DocumentFormattingCommandOptions): boolean; export declare function documentParagraphSpacing(editor: Editor): DocumentParagraphSpacing; export declare function setDocumentParagraphSpacing(editor: Editor, spacing: DocumentParagraphSpacing, options?: DocumentFormattingCommandOptions): boolean; export declare function normalizeDocumentParagraphIndent(indent: DocumentParagraphIndent): DocumentParagraphIndent; export declare function normalizeDocumentParagraphDirection(value: unknown): DocumentParagraphDirection | null; export declare function clearDocumentFormatting(editor: Editor): boolean; export declare function documentAutoLineHeight(value: unknown): number | null; export declare function documentAutoLineLeadingShift(value: unknown): number | null; export declare function renderDocumentAutoLineHeight(lineHeight: unknown, autoLineHeight?: unknown): Record;