import type { MathFieldInterface } from "../input/mathquill-types";
/**
 * Ensures there's a valid base immediately before the cursor for a superscript
 * or subscript to attach to. If the preceding node is empty or an operator that
 * can't take a script, an empty set of parentheses is inserted to act as the
 * base.
 *
 * @returns whether empty parentheses were inserted, so callers can adjust the
 * cursor position accordingly.
 */
export default function insertBaseParens(mathField: MathFieldInterface): boolean;
