import { MetricsRegister } from "@lodestar/utils"; import { ProposerRewardType } from "./block/types.js"; import { EpochTransitionStep } from "./epoch/index.js"; import { StateCloneSource, StateHashTreeRootSource } from "./stateTransition.js"; import { CachedBeaconStateAllForks } from "./types.js"; export type BeaconStateTransitionMetrics = ReturnType; /** * A collection of metrics used throughout the State Transition. */ export declare function getMetrics(register: MetricsRegister): { epochTransitionTime: import("@lodestar/utils").Histogram; epochTransitionCommitTime: import("@lodestar/utils").Histogram; epochTransitionStepTime: import("@lodestar/utils").Histogram<{ step: EpochTransitionStep; }>; processBlockTime: import("@lodestar/utils").Histogram; processBlockCommitTime: import("@lodestar/utils").Histogram; stateHashTreeRootTime: import("@lodestar/utils").Histogram<{ source: StateHashTreeRootSource; }>; numEffectiveBalanceUpdates: import("@lodestar/utils").Gauge; validatorsInActivationQueue: import("@lodestar/utils").Gauge; validatorsInExitQueue: import("@lodestar/utils").Gauge; preStateBalancesNodesPopulatedMiss: import("@lodestar/utils").Gauge<{ source: StateCloneSource; }>; preStateBalancesNodesPopulatedHit: import("@lodestar/utils").Gauge<{ source: StateCloneSource; }>; preStateValidatorsNodesPopulatedMiss: import("@lodestar/utils").Gauge<{ source: StateCloneSource; }>; preStateValidatorsNodesPopulatedHit: import("@lodestar/utils").Gauge<{ source: StateCloneSource; }>; preStateClonedCount: import("@lodestar/utils").Histogram; postStateBalancesNodesPopulatedHit: import("@lodestar/utils").Gauge; postStateBalancesNodesPopulatedMiss: import("@lodestar/utils").Gauge; postStateValidatorsNodesPopulatedHit: import("@lodestar/utils").Gauge; postStateValidatorsNodesPopulatedMiss: import("@lodestar/utils").Gauge; newSeenAttestersPerBlock: import("@lodestar/utils").Gauge; newSeenAttestersEffectiveBalancePerBlock: import("@lodestar/utils").Gauge; attestationsPerBlock: import("@lodestar/utils").Gauge; proposerRewards: import("@lodestar/utils").Gauge<{ type: ProposerRewardType; }>; }; export declare function onStateCloneMetrics(state: CachedBeaconStateAllForks, metrics: BeaconStateTransitionMetrics, source: StateCloneSource): void; export declare function onPostStateMetrics(postState: CachedBeaconStateAllForks, metrics: BeaconStateTransitionMetrics): void; //# sourceMappingURL=metrics.d.ts.map