import { ByteVectorType } from '@chainsafe/ssz'; import type { BeaconLightClientNetwork } from './beacon'; import type { HistoryNetwork } from './history'; import type { StateNetwork } from './state'; export declare enum NetworkId { StateNetwork = "0x500a", HistoryNetwork = "0x500b", TxGossipNetwork = "0x500c", HeaderGossipNetwork = "0x500d", CanonicalIndicesNetwork = "0x500e", BeaconLightClientNetwork = "0x501a", UTPNetwork = "0x757470", Rendezvous = "0x72656e" } export type SubNetwork = T extends '0x500a' ? HistoryNetwork : T extends '0x500b' ? StateNetwork : T extends '0x501a' ? BeaconLightClientNetwork : never; export declare class Bloom { bitvector: Uint8Array; /** * Represents a Bloom filter. */ constructor(bitvector?: Uint8Array); /** * Adds an element to a bit vector of a 64 byte bloom filter. * @param e - The element to add */ add(e: Uint8Array): void; /** * Checks if an element is in the bloom. * @param e - The element to check */ check(e: Uint8Array): boolean; /** * Checks if multiple topics are in a bloom. * @returns `true` if every topic is in the bloom */ multiCheck(topics: Uint8Array[]): boolean; /** * Bitwise or blooms together. */ or(bloom: Bloom): void; } /** Common SSZ Type Aliases */ export declare const Bytes32Type: ByteVectorType; //# sourceMappingURL=types.d.ts.map