import { ForkName, ForkPostBellatrix, ForkPreGloas, ForkSeq } from "@lodestar/params"; import { BeaconBlock, BeaconBlockBody, BlindedBeaconBlock, BlindedBeaconBlockBody, ExecutionPayload, ExecutionPayloadHeader, capella } from "@lodestar/types"; import { BeaconStateAllForks, BeaconStateCapella, BeaconStateExecutions, CachedBeaconStateAllForks, CachedBeaconStateExecutions } from "../types.js"; /** * Execution enabled = merge is done. * When (A) state has execution data OR (B) block has execution data */ export declare function isExecutionEnabled(state: BeaconStateExecutions, block: BeaconBlock | BlindedBeaconBlock): boolean; /** * Merge is complete when the state includes execution layer data: * state.latestExecutionPayloadHeader NOT EMPTY or state is post-capella */ export declare function isMergeTransitionComplete(state: BeaconStateExecutions): boolean; /** Type guard for bellatrix.BeaconState */ export declare function isExecutionStateType(state: BeaconStateAllForks): state is BeaconStateExecutions; /** Type guard for capella.BeaconState */ export declare function isCapellaStateType(state: BeaconStateAllForks): state is BeaconStateCapella; /** Type guard for bellatrix.CachedBeaconState */ export declare function isExecutionCachedStateType(state: CachedBeaconStateAllForks): state is CachedBeaconStateExecutions; /** Type guard for ExecutionBlockBody */ export declare function isExecutionBlockBodyType(blockBody: BeaconBlockBody): blockBody is BeaconBlockBody; export declare function getFullOrBlindedPayload(block: BeaconBlock): ExecutionPayload | ExecutionPayloadHeader; export declare function getFullOrBlindedPayloadFromBody(body: BeaconBlockBody | BlindedBeaconBlockBody): ExecutionPayload | ExecutionPayloadHeader; export declare function isCapellaPayload(payload: ExecutionPayload | ExecutionPayloadHeader): payload is ExecutionPayload | ExecutionPayloadHeader; export declare function isCapellaPayloadHeader(payload: capella.FullOrBlindedExecutionPayload): payload is capella.ExecutionPayloadHeader; export declare function executionPayloadToPayloadHeader(fork: ForkSeq, payload: ExecutionPayload): ExecutionPayloadHeader; //# sourceMappingURL=execution.d.ts.map