/** * Return `expr` parenthesized if it is not a simple identifier or numeric literal. * @param expr Expression to be parenthesized. */ export declare function par(expr: string | number): string; /** * Return the string that represents TypeScript binary expression code. * `lhs` (left hand side) and `rhs` (right hand side) get parenthesized if neccessary. * * @param lhs Left hand side of the expression * @param op Binary operator * @param rhs Right hand side of the expression */ export declare function binary(lhs: string | number, op: string, rhs: string | number): string; /** * Shortahnd for enclosing `str` with backticks. * @param str String to ecnlose with backticks. */ export declare function bt(str: string): string; export declare function maybePlural(count: number): "" | "s"; /** * Shrinks multiple subsequent whitespace characters to one single whitespace char, * adds leading whitespace to string if it is not empty. * Returns empty string if `str` contains nothing but whitespace characters. * @param str String to shrink whitespaces in. */ export declare function shrinkWs(str?: string): string; //# sourceMappingURL=utils.d.ts.map