import { LodestarError } from "@lodestar/utils";
import { GossipActionError } from "./gossipValidation.js";
export { LightClientErrorCode };
var LightClientErrorCode;
(function (LightClientErrorCode) {
    LightClientErrorCode["FINALITY_UPDATE_ALREADY_FORWARDED"] = "FINALITY_UPDATE_ALREADY_FORWARDED";
    LightClientErrorCode["OPTIMISTIC_UPDATE_ALREADY_FORWARDED"] = "OPTIMISTIC_UPDATE_ALREADY_FORWARDED";
    LightClientErrorCode["FINALITY_UPDATE_RECEIVED_TOO_EARLY"] = "FINALITY_UPDATE_RECEIVED_TOO_EARLY";
    LightClientErrorCode["OPTIMISTIC_UPDATE_RECEIVED_TOO_EARLY"] = "OPTIMISTIC_UPDATE_RECEIVED_TOO_EARLY";
    LightClientErrorCode["FINALITY_UPDATE_NOT_MATCHING_LOCAL"] = "FINALITY_UPDATE_NOT_MATCHING_LOCAL";
    LightClientErrorCode["OPTIMISTIC_UPDATE_NOT_MATCHING_LOCAL"] = "OPTIMISTIC_UPDATE_NOT_MATCHING_LOCAL";
})(LightClientErrorCode || (LightClientErrorCode = {}));
export class LightClientError extends GossipActionError {
}
export { LightClientServerErrorCode };
// Errors for the light client server
var LightClientServerErrorCode;
(function (LightClientServerErrorCode) {
    LightClientServerErrorCode["RESOURCE_UNAVAILABLE"] = "RESOURCE_UNAVAILABLE";
})(LightClientServerErrorCode || (LightClientServerErrorCode = {}));
export class LightClientServerError extends LodestarError {
}
//# sourceMappingURL=lightClientError.js.map