import { Doc } from '../../view/Doc';
import { ICursorPosition, Side } from '../types/cursor';
/** 只检查紧邻的节点 */
export declare function getImmediateNeighborNode(doc: Doc, startRunIndex: number, step: -1 | 1): any | null;
/** 向前/向后寻找原子节点 */
export declare function findFirstAtomBeyond(doc: Doc, startRunIndex: number, step: -1 | 1): any | null;
/** 判断当前光标是否已经在节点的边界 */
export declare function isAtBoundaryOfNode(doc: Doc, cursor: ICursorPosition, dir: 'left' | 'right'): boolean;
/** 计算目标行 id */
export declare function findTargetLineId(doc: Doc, lineId: string, dir: 'up' | 'down'): string | null;
/**
 * 根据 X 定位到给定的矩形数组中的哪个矩形（或最近的）
 * options:
 *   - inclusiveRight: 是否把 right 视为包含（默认 false，使用 [left, right)）
 */
export declare function locateByX(doc: Doc, x: number, nodeIds: string[], options: {
    inclusiveRight: boolean;
}): {
    index: any;
    nodeId: any;
    nodeRect: any;
    left: any;
    right: any;
    width: any;
    center: any;
    relX: number;
    side: Side;
} | null;
