import { Diagnostic, Diagnostics } from '../constructs/diagnostics.js'; /** * Attributes an underlying diagnostic to the Checkly configuration file it * originates from by prefixing the title with the file name. */ export declare class ConfigFileDiagnostic extends Diagnostic { underlying: Diagnostic; constructor(fileName: string, underlying: Diagnostic); isFatal(): boolean; isBenign(): boolean; } /** * A Diagnostics collector that attributes every added diagnostic to a * Checkly configuration file. */ export declare class ConfigFileDiagnostics extends Diagnostics { fileName: string; constructor(fileName: string); add(diagnostic: Diagnostic): void; } /** * Thrown when the Checkly configuration file contains fatal diagnostics. * * The message is composed from the fatal observations so that the error * remains readable even when rendered by a generic error handler. Callers * that can render diagnostics should prefer the `diagnostics` field. */ export declare class InvalidConfigError extends Error { diagnostics: Diagnostics; constructor(diagnostics: Diagnostics); }