import type { Logger } from '@aztec/aztec.js';
export interface AlertConfig {
    alert: string;
    expr: string;
    start?: number;
    end?: number;
    step?: number;
    for: string;
    labels: Record<string, string>;
    annotations: Record<string, string>;
}
export interface AlertCheckerConfig {
    grafanaEndpoint: string;
    grafanaCredentials: string;
}
export declare class AlertChecker {
    private config;
    private logger;
    constructor(logger: Logger, config?: Partial<AlertCheckerConfig>);
    /**
     * Load the alerts config from a file path.
     * @param filePath - The absolute path to the alerts file.
     */
    private loadAlertsConfig;
    private queryGrafana;
    private checkAlerts;
    /**
     * Run the alert check based on the alerts defined in an array.
     * @param alerts - The alerts to check.
     */
    runAlertCheck(alerts: AlertConfig[]): Promise<void>;
    /**
     * Run the alert check based on the alerts defined in a yaml file.
     * @param filePath - The absolute path to the alerts file.
     */
    runAlertCheckFromFilePath(filePath: string): Promise<void>;
}
export declare class AlertTriggeredError extends Error {
    name: string;
}
//# sourceMappingURL=alert_checker.d.ts.map