import type { Printer } from "prettier"; import { AstNode } from "../types"; type PrinterPrint = Printer["print"]; type PrinterEmbed = NonNullable["embed"]>; type PrinterComment = NonNullable["printComment"]>; export declare const printPegjsAst: PrinterPrint; /** * This is called by Prettier whenever a comment is to be printed. * Comments are stored outside of the AST, but Prettier will make its best guess * about which node a comment "belongs to". The return Doc of this function * is inserted in the appropriate place. * * @param {*} commentPath * @param {*} options */ export declare const printComment: PrinterComment; /** * Used to print embedded javascript codeblocks. This function * is called on every node. If `null` is returned, the Pegjs * printer is used. Otherwise, `textToDoc` can be used to select a * different one. */ export declare const embed: PrinterEmbed; export {};