@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
6 lines • 421 B
TypeScript
import { IBeaconStateView } from "@lodestar/state-transition";
import { AllocSource, BufferPool } from "../util/bufferPool.js";
type ProcessStateBytesFn<T> = (stateBytes: Uint8Array) => Promise<T>;
export declare function serializeState<T>(state: IBeaconStateView, source: AllocSource, processFn: ProcessStateBytesFn<T>, bufferPool?: BufferPool | null): Promise<T>;
export {};
//# sourceMappingURL=serializeState.d.ts.map