import { ChainForkConfig } from "@lodestar/config"; import { ForkAll, ForkSeq } from "@lodestar/params"; import { Epoch, SSZTypesFor, Slot } from "@lodestar/types"; export declare const VALIDATOR_BYTES_SIZE: number; export declare function getForkFromStateBytes(config: ChainForkConfig, bytes: Uint8Array): ForkSeq; export declare function getStateTypeFromBytes(config: ChainForkConfig, bytes: Uint8Array): SSZTypesFor; export declare function getStateSlotFromBytes(bytes: Uint8Array): Slot; export type StateBytesMetadata = { slot: Slot; genesisTime: number; genesisValidatorsRoot: Uint8Array; }; export declare function readBeaconStateBytesMetadata(bytes: Uint8Array): StateBytesMetadata | null; /** Read only the validator fields needed for weak subjectivity, without allocating validator objects. */ export declare function scanActiveValidatorsFromStateBytes(stateBytes: Uint8Array, stateType: SSZTypesFor, epoch: Epoch): { activeValidatorCount: number; totalActiveBalanceIncrements: number; } | null; export declare function getValidatorCountFromStateBytes(config: ChainForkConfig, stateBytes: Uint8Array): number | null; /** Returns a view into `stateBytes`, or null if the index is not in the registry. */ export declare function getValidatorPubkeyFromStateBytes(config: ChainForkConfig, stateBytes: Uint8Array, index: number): Uint8Array | null; //# sourceMappingURL=sszBytes.d.ts.map