/** * Custom JSON serializers for oRPC wire format. * * Vendored from @core/validation to avoid pulling in heavy transitive * dependencies (viem, date-fns, iso-3166). Only the serializer objects * are included — not the Zod schemas or helper functions. * * Related: packages/core/validation/src/bigdecimal.ts, * packages/core/validation/src/bigint.ts, * packages/core/validation/src/timestamp.ts * * @module */ import type { StandardRPCCustomJsonSerializer } from "@orpc/client/standard"; /** * Serializer for arbitrary-precision decimal values (dnum). * * Encodes `Dnum` values as locale-independent decimal strings on the wire * and decodes them back into `Dnum` tuples on the receiving side. */ export declare const bigDecimalSerializer: StandardRPCCustomJsonSerializer; /** * Serializer for native `bigint` values. * * Encodes bigints as decimal strings on the wire since JSON does not * support the `bigint` primitive natively. */ export declare const bigIntSerializer: StandardRPCCustomJsonSerializer; /** * Serializer for `Date` objects. * * Encodes dates as ISO-8601 strings on the wire and reconstructs * `Date` instances on deserialization. */ export declare const timestampSerializer: StandardRPCCustomJsonSerializer; /** * All DALP custom JSON serializers, pre-configured for use with * `RPCLink` or `RPCHandler` `customJsonSerializers` option. */ export declare const dalpSerializers: readonly StandardRPCCustomJsonSerializer[]; //# sourceMappingURL=serializers.d.ts.map