import { BitArray } from "@chainsafe/ssz";
import { ForkName } from "@lodestar/params";
import { BLSSignature, CommitteeIndex, RootHex, Slot, ValidatorIndex } from "@lodestar/types";
export type BlockRootHex = RootHex;
export type AttDataBase64 = string;
export type CommitteeBitsBase64 = string;
/**
 * Extract slot from attestation serialized bytes.
 * Return null if data is not long enough to extract slot.
 */
export declare function getSlotFromAttestationSerialized(data: Uint8Array): Slot | null;
/**
 * Extract block root from attestation serialized bytes.
 * Return null if data is not long enough to extract block root.
 */
export declare function getBlockRootFromAttestationSerialized(data: Uint8Array): BlockRootHex | null;
/**
 * Extract attestation data base64 from all forks' attestation serialized bytes.
 * Return null if data is not long enough to extract attestation data.
 */
export declare function getAttDataFromAttestationSerialized(data: Uint8Array): AttDataBase64 | null;
/**
 * Extract AttDataBase64 from `beacon_attestation` gossip message serialized bytes.
 * This is used for GossipQueue.
 */
export declare function getBeaconAttestationGossipIndex(fork: ForkName, data: Uint8Array): AttDataBase64 | null;
/**
 * Extract slot from `beacon_attestation` gossip message serialized bytes.
 */
export declare function getSlotFromBeaconAttestationSerialized(fork: ForkName, data: Uint8Array): Slot | null;
/**
 * Extract block root from `beacon_attestation` gossip message serialized bytes.
 */
export declare function getBlockRootFromBeaconAttestationSerialized(fork: ForkName, data: Uint8Array): BlockRootHex | null;
/**
 * Extract aggregation bits from attestation serialized bytes.
 * Return null if data is not long enough to extract aggregation bits.
 * Pre-electra attestation only
 */
export declare function getAggregationBitsFromAttestationSerialized(data: Uint8Array): BitArray | null;
/**
 * Extract signature from attestation serialized bytes.
 * Return null if data is not long enough to extract signature.
 */
export declare function getSignatureFromAttestationSerialized(data: Uint8Array): BLSSignature | null;
/**
 * Extract slot from SingleAttestation serialized bytes.
 * Return null if data is not long enough to extract slot.
 */
export declare function getSlotFromSingleAttestationSerialized(data: Uint8Array): Slot | null;
/**
 * Extract committee index from SingleAttestation serialized bytes.
 * Return null if data is not long enough to extract slot.
 */
export declare function getCommitteeIndexFromSingleAttestationSerialized(fork: ForkName, data: Uint8Array): CommitteeIndex | null;
/**
 * Extract attester index from SingleAttestation serialized bytes.
 * Return null if data is not long enough to extract index.
 */
export declare function getAttesterIndexFromSingleAttestationSerialized(data: Uint8Array): ValidatorIndex | null;
/**
 * Extract block root from SingleAttestation serialized bytes.
 * Return null if data is not long enough to extract block root.
 */
export declare function getBlockRootFromSingleAttestationSerialized(data: Uint8Array): BlockRootHex | null;
/**
 * Extract attestation data base64 from SingleAttestation serialized bytes.
 * Return null if data is not long enough to extract attestation data.
 */
export declare function getAttDataFromSingleAttestationSerialized(data: Uint8Array): AttDataBase64 | null;
/**
 * Extract signature from SingleAttestation serialized bytes.
 * Return null if data is not long enough to extract signature.
 */
export declare function getSignatureFromSingleAttestationSerialized(data: Uint8Array): BLSSignature | null;
/**
 * Extract slot from signed aggregate and proof serialized bytes
 * Return null if data is not long enough to extract slot
 * This works for both phase + electra
 */
export declare function getSlotFromSignedAggregateAndProofSerialized(data: Uint8Array): Slot | null;
/**
 * Extract block root from signed aggregate and proof serialized bytes
 * Return null if data is not long enough to extract block root
 * This works for both phase + electra
 */
export declare function getBlockRootFromSignedAggregateAndProofSerialized(data: Uint8Array): BlockRootHex | null;
/**
 * Extract AttestationData base64 from SignedAggregateAndProof for electra
 * Return null if data is not long enough
 */
export declare function getAttDataFromSignedAggregateAndProofElectra(data: Uint8Array): AttDataBase64 | null;
/**
 * Extract CommitteeBits base64 from SignedAggregateAndProof for electra
 * Return null if data is not long enough
 */
export declare function getCommitteeBitsFromSignedAggregateAndProofElectra(data: Uint8Array): CommitteeBitsBase64 | null;
/**
 * Extract attestation data base64 from signed aggregate and proof serialized bytes.
 * Return null if data is not long enough to extract attestation data.
 */
export declare function getAttDataFromSignedAggregateAndProofPhase0(data: Uint8Array): AttDataBase64 | null;
export declare function getSlotFromSignedBeaconBlockSerialized(data: Uint8Array): Slot | null;
export declare function getSlotFromBlobSidecarSerialized(data: Uint8Array): Slot | null;
//# sourceMappingURL=sszBytes.d.ts.map