import { z } from "zod/v4"; //#region src/model/primitives.schema.d.ts /** * Runtime schemas for {@link ./primitives.js}. * * The hand-written types are the contract; these schemas exist so the offchain * client can reject a backend response that no longer matches it. The two are * kept in sync by the type-level tests in `model.test-d.ts`, not by inferring * one from the other. **/ /** * {@link ChainId} **/ export declare const chainIdSchema: z.ZodNumber; /** * {@link Timestamp} **/ export declare const timestampSchema: z.ZodNumber; /** * {@link Bps}. Integer, not bounded to `0..10000`: rates may exceed 100%. **/ export declare const bpsSchema: z.ZodNumber; /** * {@link AssetType} **/ export declare const assetTypeSchema: z.ZodUnion, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>; /** * {@link Leverage}. Nonnegative rather than positive: `0` is the backend's * encoding of "leverage unavailable". **/ export declare const leverageSchema: z.ZodNumber; /** * {@link Amount} **/ export declare const amountSchema: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; }, z.core.$strip>; /** * {@link Token} **/ export declare const tokenSchema: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; /** * {@link UnderlyingToken} **/ export declare const underlyingTokenSchema: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; wrappedAddress: z.ZodNullable>>; }, z.core.$strip>; /** * {@link TokenAmount} **/ export declare const tokenAmountSchema: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; /** * {@link TxCall} **/ export declare const txCallSchema: z.ZodObject<{ to: z.ZodCodec>; callData: z.ZodCodec>; value: z.ZodOptional, z.ZodBigInt>>; }, z.core.$strip>; //#endregion