import ArenaSelection from '../helpers/ArenaSelection';
import ArenaCursor from '../interfaces/ArenaCursor';
import { AnyArenaNode } from '../interfaces/ArenaNode';
export declare function getAncestors(cursor: ArenaCursor): ArenaCursor[];
export declare function getCommonAncestor(cursorA: ArenaCursor, cursorB: ArenaCursor): [
    AnyArenaNode,
    number,
    number
];
/**
  * Call callback function for all selected nodes without any child nodes.
  * @param selection ArenaSelection
  * @param callback (node: AnyArenaNode, start?: number, end?: number) => void
  * @returns Common ancestor with start and end indexes of selected nodes.
  */
export declare function runThroughSelection(selection: ArenaSelection, callback?: (node: AnyArenaNode, start?: number, end?: number) => void): [AnyArenaNode, number, number] | undefined;
/** */
export declare function runOfChildren(node: AnyArenaNode, callback: (n: AnyArenaNode) => void): void;
//# sourceMappingURL=modelTree.d.ts.map