import type { MarkdocError, CommonError, ErrorSeverity } from '../../../types/index.js';
export declare class Reporter {
    private errors;
    private markdocProblems;
    private esbuildProblems;
    pushError(message: string, severity: ErrorSeverity, ...args: any[]): void;
    reportBrokenLink(details: CommonError & {
        type: 'BROKEN_LINK';
    }): void;
    reportEsbuildError(details: CommonError & {
        type: 'ERROR';
    }): void;
    panicOnBuild(message: string | Error, ...args: any[]): void;
    panicOnBuildContentError(message: string | Error, ...args: any[]): void;
    reportMarkdocProblem(details: MarkdocError): void;
    clearErrors(): void;
    clearMarkdocProblems(): void;
    clearEsbuildProblems(): void;
    getEsbuildProblem(key: string): CommonError | undefined;
    getEsbuildProblems(): CommonError[];
    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;
    }))[];
    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;
    }))[];
    printErrors(errors?: Array<MarkdocError | CommonError>): void;
    listenStdin(): void;
}
export declare const reporter: Reporter;
//# sourceMappingURL=reporter.d.ts.map