import { Serializable } from '../serializable/common.js'; export declare function pack(serializables: (Serializable | Serializable[])[]): Uint8Array; export declare const packList: (serializables: readonly Serializable[]) => Uint8Array; export type FromBytesReturn = T extends { fromBytes: (buff: Uint8Array) => [infer rType, Uint8Array]; } ? rType : T extends { fromBytes: (buff: Uint8Array) => [infer rType, Uint8Array]; } ? rType : never; export type ReturnTypes = { [i in keyof T]: FromBytesReturn; }; export declare function unpack(buffer: Uint8Array, sers: O): [...ReturnTypes, Uint8Array]; export declare const bytesForInt: (num: number) => Uint8Array; //# sourceMappingURL=packer.d.ts.map