import type { BuildFailure } from 'esbuild';
export type Location = {
    line?: number;
    column?: number;
    lineText: string;
    length?: number;
};
export declare class EsbuildError extends Error {
    errors: BuildFailure['errors'];
    warnings: BuildFailure['warnings'];
    constructor({ errors, warnings }: Partial<BuildFailure>);
}
export declare function esbuildLogger({ errors, warnings }: EsbuildError): Promise<void>;
export declare function reportEsbuildError(message: string, sourceFileRelativePath: string, fileContent: string, location?: Location | null): {
    message: string;
    sourceFileRelativePath: string;
    sourceFileLocation: {
        line: number;
        character?: number;
    };
    codeframe: string;
    hasMatched: boolean;
};
//# sourceMappingURL=esbuild-logger.d.ts.map