interface CursorPosition {
    pos: () => number;
    depth: () => number;
    inTextNode: () => boolean;
    prevNodeIsText: () => boolean;
    nextNodeIsText: () => boolean;
    parentType: () => string;
    anchor: () => any;
    nextNodeSize: () => number;
    prevNodeSize: () => number;
}
interface Editor {
    $pos: (pos: number) => any;
    state: {
        selection: {
            $anchor: {
                pos: number;
                depth: number;
                parent: {
                    firstChild: {
                        isText: boolean;
                    } | null;
                    type: {
                        name: string;
                    };
                };
                nodeBefore: {
                    isText: boolean;
                    nodeSize: number;
                } | null;
                nodeAfter: {
                    type: {
                        name: string;
                    };
                    nodeSize: number;
                } | null;
            };
        };
    };
}
export declare const getCursorPos: (editor: Editor) => CursorPosition;
export {};
