import { Type } from "@chainsafe/ssz"; import { BLSPubkey, Epoch } from "@lodestar/types"; import { Bucket } from "../../buckets.js"; import { LodestarValidatorDatabaseController } from "../../types.js"; import { SlashingProtectionAttestation } from "../types.js"; /** * Manages validator db storage of attestations. * Entries in the db are indexed by an encoded key which combines the validator's public key and the * attestation's target epoch. */ export declare class AttestationByTargetRepository { protected db: LodestarValidatorDatabaseController; protected type: Type; protected bucket: Bucket; private readonly bucketId; private readonly dbReqOpts; private readonly minKey; private readonly maxKey; constructor(db: LodestarValidatorDatabaseController); getAll(pubkey: BLSPubkey, limit?: number): Promise; get(pubkey: BLSPubkey, targetEpoch: Epoch): Promise; set(pubkey: BLSPubkey, atts: SlashingProtectionAttestation[]): Promise; listPubkeys(): Promise; private encodeKey; private decodeKey; } //# sourceMappingURL=attestationByTargetRepository.d.ts.map