import type { RoUint8Array } from "@xlabs-xyz/const-utils"; import type { Endianness, Layout, DeriveType, NumType, FixedConversion, LayoutObject, ItemBase } from "./layout.js"; type Cursor = { bytes: Uint8Array; offset: number; }; export declare function serialize(layout: L, data: DeriveType, encoded?: E): E extends undefined ? Uint8Array : number; export declare function serializeNum(val: NumType, size: number, cursor: Cursor, endianness?: Endianness, signed?: boolean): void; export declare function getCachedSerializedFrom(item: ItemBase<"bytes"> & { layout: Layout; custom: FixedConversion; }): RoUint8Array; export {}; //# sourceMappingURL=serialize.d.ts.map