declare class NegativeClass { /** * Returns if the given node is negative. Treats a unary minus as a negative, * as well as a negative constant value or a constant fraction that would * evaluate to a negative number * */ isNegative(node: any): any; /** * Given a node, returns the negated node * If naive is true, then we just add an extra unary minus to the expression * otherwise, we do the actual negation * E.g. * not naive: -3 -> 3, x -> -x * naive: -3 -> --3, x -> -x * */ negate(node: any, naive?: boolean): any; /** * Multiplies a polynomial term by -1 and returns the new node * If naive is true, then we just add an extra unary minus to the expression * otherwise, we do the actual negation * E.g. * not naive: -3x -> 3x, x -> -x * naive: -3x -> --3x, x -> -x * */ negatePolynomialTerm(node: any, naive?: boolean): any; } export declare const Negative: NegativeClass; export {};