import { ApiClient } from "@lodestar/api"; import { ValidatorIndex } from "@lodestar/types"; import { Logger } from "@lodestar/utils"; import { Metrics } from "../metrics.js"; type PubkeyHex = string; export declare class IndicesService { private readonly logger; private readonly api; private readonly metrics; readonly index2pubkey: Map; /** Indexed by pubkey in hex 0x prefixed */ readonly pubkey2index: Map; private pollValidatorIndicesPromise; constructor(logger: Logger, api: ApiClient, metrics: Metrics | null); get indexCount(): number; /** Returns the validator index for a given validator pubkey */ getValidatorIndex(pubKey: PubkeyHex): ValidatorIndex | undefined; /** Return all known indices from the validatorStore pubkeys */ getAllLocalIndices(): ValidatorIndex[]; /** Return true if `index` is active part of this validator client */ hasValidatorIndex(index: ValidatorIndex): boolean; pollValidatorIndices(pubkeysHex: PubkeyHex[]): Promise; removeForKey(pubkey: PubkeyHex): boolean; private pollValidatorIndicesInternal; private fetchValidatorIndices; } export {}; //# sourceMappingURL=indices.d.ts.map