/// import { ByteBuffer } from "@mainsail/utils"; export type MandatoryPropertyType = "hash" | "publicKey" | "hex" | "signature" | "transactions" | "consensusSignature" | "validatorSet"; export type OptionalPropertyType = "uint8" | "uint16" | "uint32" | "uint48" | "uint64" | "address" | "bigint" | "blockId"; export type SerializationSchema = { type: MandatoryPropertyType; } | { type: OptionalPropertyType; optional?: true; }; export interface SerializationConfiguration { schema: Record; length: number; skip: number; } export type DeserializationSchema = { type: MandatoryPropertyType; size?: number; } | { type: OptionalPropertyType; optional?: true; }; export interface DeserializationConfiguration { schema: Record; length?: number; skip?: number; } export interface Serializer { serialize(data: T, configuration: SerializationConfiguration): Promise; deserialize(source: ByteBuffer, target: T, configuration: DeserializationConfiguration): Promise; } //# sourceMappingURL=serializer.d.ts.map