srs-document/node_modules/@unified-latex/unified-latex-prettier/libs/printer/environment.d.ts
2025-03-24 15:42:48 +07:00

20 lines
965 B
TypeScript

import type { Doc } from "prettier";
import * as PrettierTypes from "./prettier-types";
import * as Ast from "@unified-latex/unified-latex-types";
export declare function printVerbatimEnvironment(path: PrettierTypes.AstPath, print: PrettierTypes.RecursivePrintFunc, options: any): Doc;
export declare function printEnvironment(path: PrettierTypes.AstPath, print: PrettierTypes.RecursivePrintFunc, options: any): Doc;
export declare function printAlignedEnvironment(path: PrettierTypes.AstPath, print: PrettierTypes.RecursivePrintFunc, options: any): Doc;
/**
* Formats the content of an aligned/tabular environment's content.
* Ensures the "&" delimiters all line up.
*
* @export
* @param {[object]} nodes
* @returns {{rows: [string], rowSeps: [object]}}
*/
export declare function formatAlignedContent(nodes: Ast.Node[]): {
rows: string[];
rowSeps: string[];
trailingComments: (Ast.Comment | null)[];
};
//# sourceMappingURL=environment.d.ts.map