import { CursorContext } from "./cursor-contexts";
import type { MathFieldInterface } from "./mathquill-types";
export declare function isFraction(node: any): boolean;
export declare function isParens(node: any): boolean;
export declare function isSquareRoot(node: any): boolean;
export declare function isNthRoot(node: any): boolean;
export declare function isNthRootIndex(node: any): boolean;
export declare function isInsideLogIndex(cursor: any): boolean;
export declare function isInsideEmptyNode(cursor: any): boolean;
export declare function selectNode(node: any, cursor: any): void;
/**
 * Return the start node, end node, and full name of the command of which
 * the initial node is a part, or `null` if the node is not part of a
 * command.
 *
 * @param {node} initialNode - the node to included as part of the command
 * @returns {null|object} - `null` or an object containing the start node
 *                          (`startNode`), end node (`endNode`), and full
 *                          name (`name`) of the command
 */
export declare function maybeFindCommand(initialNode: any): {
    name: string;
    startNode: any;
    endNode: any;
} | null;
/**
 * Return the start node, end node, and full name of the command to the left
 * of `\\left(`, or `null` if there is no command.
 *
 * @param {node} leftParenNode - node where .ctrlSeq == `\\left(`
 * @returns {null|object} - `null` or an object containing the start node
 *                          (`startNode`), end node (`endNode`), and full
 *                          name (`name`) of the command
 */
export declare function maybeFindCommandBeforeParens(leftParenNode: any): {
    name: string;
    startNode: any;
    endNode: any;
} | null;
export declare function getCursorContext(mathField?: MathFieldInterface): (typeof CursorContext)[keyof typeof CursorContext];
