import { Node } from 'prosemirror-model'; export type Heading = { title: string; level: number; id: string; }; export type GetHeadingsOptions = { selectedChannelId?: string; }; /** * Extracts all headings from a ProseMirror document. * Returns an array of heading objects with title, level, and unique id. * * @param doc ProseMirror document node * @returns Array of Heading objects */ export declare function getHeadings(doc: Node, options?: GetHeadingsOptions): Heading[]; /** * Compares two heading arrays for equality. * Used to avoid unnecessary callbacks when headings haven't changed. */ export declare function headingsEqual(a: Heading[], b: Heading[]): boolean;