import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model'; import type { Selection } from '@atlaskit/editor-prosemirror/state'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { EditorCommand } from '../types'; export declare const expandedState: WeakMap; export declare const TOGGLE_EXPAND_RANGE_META_KEY = "toggleExpandRange"; /** Opens/closes all expand/nestedExpand nodes in a range via the shared expand meta signal. */ export declare const toggleExpandRange: (from?: number, to?: number, open?: boolean) => EditorCommand; export declare const isExpandCollapsed: (node: PmNode) => boolean; export declare const getNextNodeExpandPos: (editorView: EditorView, selection: Selection) => number | undefined;