import type { MarkdocError, CommonError, ErrorSeverity, PageRenderError } from '../../../types/index.js'; import type { ContentFs } from '../../fs/content-fs.js'; export declare class Reporter { #private; pushError(message: string, severity: ErrorSeverity, ...args: any[]): void; reportBrokenLink(details: CommonError & { type: 'BROKEN_LINK'; }): void; reportCompilationError(details: CommonError & { type: 'ERROR'; }): void; reportPageRenderError(details: PageRenderError): void; panicOnBuild(message: string | Error, ...args: any[]): Promise; panicOnBuildContentErrorForRealFile(message: string | Error, relativePath: string, fs: ContentFs, ...args: any[]): Promise; panicOnBuildContentError(message: string | Error, ...args: any[]): Promise; panic(message: string | Error, ...args: any[]): Promise; panicOnContentError(message: string | Error, ...args: any[]): Promise; reportMarkdocProblem(details: MarkdocError): void; clearErrors(): void; clearMarkdocProblems(): void; clearEsbuildProblems(): void; clearPageRenderProblems(): void; getCompilationProblem(key: string): CommonError | undefined; getCompilationProblems(): CommonError[]; getPageRenderProblems(): PageRenderError[]; getPageRenderProblem(fsPath: string): PageRenderError | undefined; getProblems(): ({ severity: ErrorSeverity; type: "ERROR"; message: string; codeframe?: string | undefined; sourceFileRelativePath?: string; sourceFileLocation?: { line: number; character?: number; }; } | ({ message: string; codeframe?: string; type: "BROKEN_LINK" | "MARKDOC" | "RESOLVE"; brokenLinkType?: import("../../../types/index.js").BrokenLinkType; sourceFileRelativePath: string; sourceFileLocation: import("@markdoc/markdoc").LocationEdge; } & { type: "BROKEN_LINK"; link: string; rawLink: string; title: string; }) | ({ message: string; codeframe?: string; type: "BROKEN_LINK" | "MARKDOC" | "RESOLVE"; brokenLinkType?: import("../../../types/index.js").BrokenLinkType; sourceFileRelativePath: string; sourceFileLocation: import("@markdoc/markdoc").LocationEdge; } & { type: "MARKDOC"; }) | ({ message: string; codeframe?: string; type: "BROKEN_LINK" | "MARKDOC" | "RESOLVE"; brokenLinkType?: import("../../../types/index.js").BrokenLinkType; sourceFileRelativePath: string; sourceFileLocation: import("@markdoc/markdoc").LocationEdge; } & { type: "RESOLVE"; rawLink: string; }) | PageRenderError)[]; summary(timing: string, pages?: number): ({ severity: ErrorSeverity; type: "ERROR"; message: string; codeframe?: string | undefined; sourceFileRelativePath?: string; sourceFileLocation?: { line: number; character?: number; }; } | ({ message: string; codeframe?: string; type: "BROKEN_LINK" | "MARKDOC" | "RESOLVE"; brokenLinkType?: import("../../../types/index.js").BrokenLinkType; sourceFileRelativePath: string; sourceFileLocation: import("@markdoc/markdoc").LocationEdge; } & { type: "BROKEN_LINK"; link: string; rawLink: string; title: string; }) | ({ message: string; codeframe?: string; type: "BROKEN_LINK" | "MARKDOC" | "RESOLVE"; brokenLinkType?: import("../../../types/index.js").BrokenLinkType; sourceFileRelativePath: string; sourceFileLocation: import("@markdoc/markdoc").LocationEdge; } & { type: "MARKDOC"; }) | ({ message: string; codeframe?: string; type: "BROKEN_LINK" | "MARKDOC" | "RESOLVE"; brokenLinkType?: import("../../../types/index.js").BrokenLinkType; sourceFileRelativePath: string; sourceFileLocation: import("@markdoc/markdoc").LocationEdge; } & { type: "RESOLVE"; rawLink: string; }) | PageRenderError)[]; printErrors(errors?: Array): void; } export declare const reporter: Reporter; //# sourceMappingURL=reporter.d.ts.map