import { BeaconConfig } from "@lodestar/config"; import { IBeaconStateView } from "./interface.js"; type CreateBeaconStateViewOpts = { nativeStateTransition: boolean; config: BeaconConfig; stateBytes: Uint8Array; }; /** * Create a BeaconStateView from raw SSZ bytes. Used at node startup. * * Caller must reserve pubkey capacity before calling this function. * * Set `nativeStateTransition: true` to use the native (Zig) implementation. */ export declare function createBeaconStateView(opts: CreateBeaconStateViewOpts): IBeaconStateView; type RegenNodeJSOpts = { nativeStateTransition: false; config: BeaconConfig; stateBytes: Uint8Array; }; type RegenNativeOpts = { nativeStateTransition: true; config: BeaconConfig; stateBytes: Uint8Array; }; /** * Create a BeaconStateView from raw SSZ bytes. Used in the historical state regen worker thread. * * Set `nativeStateTransition: true` to use the native (Zig) implementation. */ export declare function createBeaconStateViewForHistoricalRegen(opts: RegenNodeJSOpts | RegenNativeOpts): IBeaconStateView; export {}; //# sourceMappingURL=stateViewFactory.d.ts.map