import { ChainForkConfig } from "@lodestar/config"; import { phase0 } from "@lodestar/types"; import { EpochCacheOpts } from "../cache/epochCache.js"; import { BeaconStateCache } from "../cache/stateCache.js"; import { BeaconStateAllForks, BeaconStatePhase0, CachedBeaconStateAllForks } from "../index.js"; /** * Copy of BeaconState, but all fields are marked optional to allow for swapping out variables as needed. */ type TestBeaconState = Partial; /** * Generate beaconState, by default it will use the initial state defined when the `ChainStart` log is emitted. * NOTE: All fields can be overridden through `opts`. * @param {TestBeaconState} opts * @returns {BeaconState} */ export declare function generateState(opts?: TestBeaconState): BeaconStatePhase0; export declare function generateCachedState(config?: ChainForkConfig, opts?: TestBeaconState): CachedBeaconStateAllForks; export declare function createCachedBeaconStateTest(state: T, configCustom?: ChainForkConfig, opts?: EpochCacheOpts): T & BeaconStateCache; export {}; //# sourceMappingURL=state.d.ts.map