import type { CommandProps, Editor } from '@tiptap/core'; import { type Node as ProseMirrorNode } from '@tiptap/pm/model'; import type { WorkDocumentSectionBreakType, WorkDocumentSectionLayout } from './work-types'; export interface ActiveDocumentSection { id: string; index: number; count: number; position: number; node: ProseMirrorNode; layout: WorkDocumentSectionLayout; } type DocumentSectionCommandContext = Pick; export declare function activeDocumentSection(editor: Editor): ActiveDocumentSection | null; export declare function activeDocumentSectionFromState(state: Editor['state']): ActiveDocumentSection | null; export declare function updateActiveDocumentSection(layout: WorkDocumentSectionLayout, commandContext: DocumentSectionCommandContext): boolean; export declare function documentSectionById(editor: Editor, sectionId: string): ActiveDocumentSection | null; export declare function updateDocumentSection(sectionId: string, layout: WorkDocumentSectionLayout, commandContext: DocumentSectionCommandContext): boolean; export declare function insertDocumentSection(editor: Editor, breakAfter: WorkDocumentSectionBreakType, commandContext: DocumentSectionCommandContext): boolean; export declare function mergeDocumentSectionWithPrevious(_editor: Editor, commandContext: DocumentSectionCommandContext): boolean; export {};