import { ChainForkConfig } from "@lodestar/config"; import { BeaconStateAllForks } from "../../types.js"; type MigrateStateOutput = { state: BeaconStateAllForks; modifiedValidators: number[]; }; /** * Load state from bytes given a seed state so that we share the same base tree. This gives some benefits: * - Have single base tree across the application * - Faster to load state * - Less memory usage * - Utilize the cached HashObjects in seed state due to a lot of validators are not changed, also the inactivity scores. * @returns the new state and modified validators */ export declare function loadState(config: ChainForkConfig, seedState: BeaconStateAllForks, stateBytes: Uint8Array, seedValidatorsBytes?: Uint8Array): MigrateStateOutput; /** * Load state and validators Uint8Array from state bytes. */ export declare function loadStateAndValidators(chainForkConfig: ChainForkConfig, stateBytes: Uint8Array): { state: BeaconStateAllForks; validatorsBytes: Uint8Array; }; export {}; //# sourceMappingURL=loadState.d.ts.map