import { type PubkeyCache } from "@chainsafe/lodestar-z/pubkeys"; import { BeaconConfig } from "@lodestar/config"; import { BeaconStateAllForks } from "../cache/types.js"; import { IBeaconStateView } from "./interface.js"; type NodeJSOpts = { useNative: false; anchorState: BeaconStateAllForks; config: BeaconConfig; pubkeyCache: PubkeyCache; }; type NativeOpts = { useNative: true; stateBytes: Uint8Array; }; /** * Create a BeaconStateView from a pre-deserialized state. Used at node startup. * * The caller is responsible for creating and populating `pubkeyCache` (it is also * passed separately to BeaconNode.init, so it must live outside this factory). * * Set `useNative: true` to use the native (Zig) implementation once available. */ export declare function createBeaconStateView(opts: NodeJSOpts | NativeOpts): IBeaconStateView; type RegenNodeJSOpts = { useNative: false; config: BeaconConfig; stateBytes: Uint8Array; }; type RegenNativeOpts = { useNative: true; stateBytes: Uint8Array; }; /** * Create a BeaconStateView from raw SSZ bytes. Used in the historical state regen worker thread. * * Set `useNative: true` to use the native (Zig) implementation once available. */ export declare function createBeaconStateViewForHistoricalRegen(opts: RegenNodeJSOpts | RegenNativeOpts): IBeaconStateView; export {}; //# sourceMappingURL=stateViewFactory.d.ts.map