import { IBeaconDb } from "@lodestar/beacon-node"; import { ChainForkConfig } from "@lodestar/config"; import { BeaconStateAllForks } from "@lodestar/state-transition"; import { Checkpoint } from "@lodestar/types/phase0"; import { Logger } from "@lodestar/utils"; import { GlobalArgs } from "../../options/globalOptions.js"; import { BeaconArgs } from "./options.js"; /** * Initialize a beacon state, picking the strategy based on the `IBeaconArgs` * * State is initialized in one of three ways: * 1. restore from weak subjectivity state (possibly downloaded from a remote beacon node) * 2. restore from db * 3. restore from genesis state (possibly downloaded via URL) * * The returned anchorState could be finalized or not. * - if we load from checkpointState, checkpointSyncUrl, genesisStateFile or archived db, it is finalized * - it's not finalized if we load from unsafeCheckpointState or lastPersistedCheckpointState */ export declare function initBeaconState(args: BeaconArgs & GlobalArgs, dataDir: string, chainForkConfig: ChainForkConfig, db: IBeaconDb, logger: Logger): Promise<{ anchorState: BeaconStateAllForks; stateBytes: Uint8Array; isFinalized: boolean; wsCheckpoint?: Checkpoint; }>; //# sourceMappingURL=initBeaconState.d.ts.map