UNPKG

@xylabs/hex

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

6 lines 532 B
import * as z from 'zod'; /** Zod schema that transforms a non-negative BigInt into a hex string for JSON serialization. */ export declare const BigIntToJsonZod: z.ZodPipe<z.ZodBigInt, z.ZodTransform<import("./hex/hex.ts").BrandedHex, bigint>>; /** Zod schema that parses a JSON hex string into a BigInt. */ export declare const JsonToBigIntZod: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("./hex/hex.ts").BrandedHex, string>>, z.ZodTransform<bigint, import("./hex/hex.ts").BrandedHex>>; //# sourceMappingURL=zod.d.ts.map