import type { Selection } from './SelectionHelper.js';
export type CursorMap = number[];
export declare class CursorHelper {
    static normalizePosition(map: CursorMap, position: number): number;
    static calculatePosition(map: CursorMap, position: number, step: number): number;
    static extendSelection(map: CursorMap, selection: Selection, step: number): Selection;
    static normalizeSelection(map: CursorMap, selection: Selection): Selection;
    static toRawPosition(map: CursorMap, formattedPosition: number): number;
    static toFormattedPosition(map: CursorMap, rawPosition: number): number;
}
