import { ForkSeq } from "@lodestar/params"; import { phase0 } from "@lodestar/types"; import { CachedBeaconStateAllForks } from "../types.js"; export declare enum VoluntaryExitValidity { valid = "valid", inactive = "inactive", alreadyExited = "already_exited", earlyEpoch = "early_epoch", shortTimeActive = "short_time_active", pendingWithdrawals = "pending_withdrawals", invalidSignature = "invalid_signature" } /** * Process a VoluntaryExit operation. Initiates the exit of a validator or builder. * * PERF: Work depends on number of VoluntaryExit per block. On regular networks the average is 0 / block. */ export declare function processVoluntaryExit(fork: ForkSeq, state: CachedBeaconStateAllForks, signedVoluntaryExit: phase0.SignedVoluntaryExit, verifySignature?: boolean): void; export declare function getVoluntaryExitValidity(fork: ForkSeq, state: CachedBeaconStateAllForks, signedVoluntaryExit: phase0.SignedVoluntaryExit, verifySignature?: boolean): VoluntaryExitValidity; export declare function isValidVoluntaryExit(fork: ForkSeq, state: CachedBeaconStateAllForks, signedVoluntaryExit: phase0.SignedVoluntaryExit, verifySignature?: boolean): boolean; //# sourceMappingURL=processVoluntaryExit.d.ts.map