import { SfError } from "@salesforce/core";
import { uxLog } from "../utils/index.js";
export class NotifProviderRoot {
    token;
    getLabel() {
        throw new SfError("getLabel should be implemented on this call");
    }
    // By default, we don't send logs to other notif targets than API to avoid noise
    isApplicableForNotif(notifMessage) {
        return ["critical", "error", "warning", "info", "success"].includes(notifMessage.severity);
    }
    // Defines if the provider targets Users or Machines (Logs,Metrics like for Grafana Loki & Prometheus)
    isUserNotifProvider() {
        return true;
    }
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    async postNotification(notifMessage) {
        uxLog("other", this, `Method postNotification is not implemented yet on ${this.getLabel()}`);
        return;
    }
}
//# sourceMappingURL=notifProviderRoot.js.map