import { ChainConfig, ChainForkConfig } from "@lodestar/config"; import { BeaconStateAllForks } from "@lodestar/state-transition"; import { Checkpoint } from "@lodestar/types/phase0"; import { Logger } from "@lodestar/utils"; export type NetworkName = "mainnet" | "dev" | "gnosis" | "sepolia" | "hoodi" | "chiado" | "ephemery"; export declare const networkNames: NetworkName[]; export declare function isKnownNetworkName(network: string): network is NetworkName; export type WeakSubjectivityFetchOptions = { weakSubjectivityServerUrl: string; weakSubjectivityCheckpoint?: string; }; export declare function getNetworkData(network: NetworkName): { chainConfig: ChainConfig; genesisFileUrl: string | null; genesisStateRoot: string | null; bootnodesFileUrl: string | null; bootEnrs: string[]; }; export declare function getNetworkBeaconParams(network: NetworkName): ChainConfig; /** * Get genesisStateFile URL to download. Returns null if not available */ export declare function getGenesisFileUrl(network: NetworkName): string | null; /** * Get expected genesisStateRoot for validation. Returns null if not available. * For example, this returns null for Ephemery, since its genesis state root * changes with each iteration and we don't know the permanent state root. */ export declare function getGenesisStateRoot(network: NetworkName | undefined): string | null; /** * Fetches the latest list of bootnodes for a network * Bootnodes file is expected to contain bootnode ENR's concatenated by newlines */ export declare function fetchBootnodes(network: NetworkName): Promise; export declare function getNetworkBootnodes(network: NetworkName): Promise; /** * Reads and parses a list of bootnodes for a network from a file. */ export declare function readBootnodes(bootnodesFilePath: string): string[]; /** * Fetch weak subjectivity state from a remote beacon node */ export declare function fetchWeakSubjectivityState(config: ChainForkConfig, logger: Logger, { checkpointSyncUrl, wssCheckpoint }: { checkpointSyncUrl: string; wssCheckpoint?: string; }, { lastDbState, lastDbValidatorsBytes }: { lastDbState: BeaconStateAllForks | null; lastDbValidatorsBytes: Uint8Array | null; }): Promise<{ wsState: BeaconStateAllForks; wsStateBytes: Uint8Array; wsCheckpoint: Checkpoint; }>; export declare function getCheckpointFromArg(checkpointStr: string): Checkpoint; export declare function getCheckpointFromState(state: BeaconStateAllForks): Checkpoint; //# sourceMappingURL=index.d.ts.map