import { z } from 'zod'; /** * Zod schemas for runtime validation of Hyperliquid API responses * Types are inferred from schemas to maintain a single source of truth */ /** * Validator address schema - validates 42-character hexadecimal format * e.g. 0x0000000000000000000000000000000000000000 */ export declare const ValidatorAddressSchema: z.ZodString; export declare const ExchangeApiSuccessResponseSchema: z.ZodObject<{ status: z.ZodLiteral<"ok">; response: z.ZodObject<{ type: z.ZodLiteral<"default">; }, "strip", z.ZodTypeAny, { type: "default"; }, { type: "default"; }>; }, "strip", z.ZodTypeAny, { status: "ok"; response: { type: "default"; }; }, { status: "ok"; response: { type: "default"; }; }>; export declare const ExchangeApiErrorResponseSchema: z.ZodObject<{ status: z.ZodLiteral<"err">; response: z.ZodString; }, "strip", z.ZodTypeAny, { status: "err"; response: string; }, { status: "err"; response: string; }>; export declare const ExchangeApiResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"ok">; response: z.ZodObject<{ type: z.ZodLiteral<"default">; }, "strip", z.ZodTypeAny, { type: "default"; }, { type: "default"; }>; }, "strip", z.ZodTypeAny, { status: "ok"; response: { type: "default"; }; }, { status: "ok"; response: { type: "default"; }; }>, z.ZodObject<{ status: z.ZodLiteral<"err">; response: z.ZodString; }, "strip", z.ZodTypeAny, { status: "err"; response: string; }, { status: "err"; response: string; }>]>; export type ExchangeApiSuccessResponse = z.infer; export type ExchangeApiErrorResponse = z.infer; export type ExchangeApiResponse = z.infer; export declare const DelegatorSummarySchema: z.ZodObject<{ delegated: z.ZodString; undelegated: z.ZodString; totalPendingWithdrawal: z.ZodString; nPendingWithdrawals: z.ZodNumber; }, "strip", z.ZodTypeAny, { delegated: string; undelegated: string; totalPendingWithdrawal: string; nPendingWithdrawals: number; }, { delegated: string; undelegated: string; totalPendingWithdrawal: string; nPendingWithdrawals: number; }>; export declare const DelegationSchema: z.ZodObject<{ validator: z.ZodString; amount: z.ZodString; lockedUntilTimestamp: z.ZodNumber; }, "strip", z.ZodTypeAny, { validator: string; amount: string; lockedUntilTimestamp: number; }, { validator: string; amount: string; lockedUntilTimestamp: number; }>; export declare const StakingRewardSchema: z.ZodObject<{ time: z.ZodNumber; source: z.ZodEnum<["delegation", "commission"]>; totalAmount: z.ZodString; }, "strip", z.ZodTypeAny, { time: number; source: "delegation" | "commission"; totalAmount: string; }, { time: number; source: "delegation" | "commission"; totalAmount: string; }>; export declare const DelegationHistoryEventSchema: z.ZodObject<{ time: z.ZodNumber; hash: z.ZodString; delta: z.ZodUnion<[z.ZodObject<{ delegate: z.ZodObject<{ validator: z.ZodString; amount: z.ZodString; isUndelegate: z.ZodBoolean; }, "strip", z.ZodTypeAny, { validator: string; amount: string; isUndelegate: boolean; }, { validator: string; amount: string; isUndelegate: boolean; }>; }, "strip", z.ZodTypeAny, { delegate: { validator: string; amount: string; isUndelegate: boolean; }; }, { delegate: { validator: string; amount: string; isUndelegate: boolean; }; }>, z.ZodObject<{ cDeposit: z.ZodObject<{ amount: z.ZodString; }, "strip", z.ZodTypeAny, { amount: string; }, { amount: string; }>; }, "strip", z.ZodTypeAny, { cDeposit: { amount: string; }; }, { cDeposit: { amount: string; }; }>, z.ZodObject<{ withdrawal: z.ZodObject<{ amount: z.ZodString; phase: z.ZodString; }, "strip", z.ZodTypeAny, { amount: string; phase: string; }, { amount: string; phase: string; }>; }, "strip", z.ZodTypeAny, { withdrawal: { amount: string; phase: string; }; }, { withdrawal: { amount: string; phase: string; }; }>]>; }, "strip", z.ZodTypeAny, { time: number; hash: string; delta: { delegate: { validator: string; amount: string; isUndelegate: boolean; }; } | { cDeposit: { amount: string; }; } | { withdrawal: { amount: string; phase: string; }; }; }, { time: number; hash: string; delta: { delegate: { validator: string; amount: string; isUndelegate: boolean; }; } | { cDeposit: { amount: string; }; } | { withdrawal: { amount: string; phase: string; }; }; }>; export declare const SpotBalanceSchema: z.ZodObject<{ coin: z.ZodString; token: z.ZodNumber; total: z.ZodString; hold: z.ZodString; entryNtl: z.ZodString; }, "strip", z.ZodTypeAny, { coin: string; token: number; total: string; hold: string; entryNtl: string; }, { coin: string; token: number; total: string; hold: string; entryNtl: string; }>; export declare const SpotBalancesResponseSchema: z.ZodObject<{ balances: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { balances: { coin: string; token: number; total: string; hold: string; entryNtl: string; }[]; }, { balances: { coin: string; token: number; total: string; hold: string; entryNtl: string; }[]; }>; export declare const DelegationsResponseSchema: z.ZodArray, "many">; export declare const StakingRewardsResponseSchema: z.ZodArray; totalAmount: z.ZodString; }, "strip", z.ZodTypeAny, { time: number; source: "delegation" | "commission"; totalAmount: string; }, { time: number; source: "delegation" | "commission"; totalAmount: string; }>, "many">; export declare const DelegationHistoryResponseSchema: z.ZodArray; }, "strip", z.ZodTypeAny, { delegate: { validator: string; amount: string; isUndelegate: boolean; }; }, { delegate: { validator: string; amount: string; isUndelegate: boolean; }; }>, z.ZodObject<{ cDeposit: z.ZodObject<{ amount: z.ZodString; }, "strip", z.ZodTypeAny, { amount: string; }, { amount: string; }>; }, "strip", z.ZodTypeAny, { cDeposit: { amount: string; }; }, { cDeposit: { amount: string; }; }>, z.ZodObject<{ withdrawal: z.ZodObject<{ amount: z.ZodString; phase: z.ZodString; }, "strip", z.ZodTypeAny, { amount: string; phase: string; }, { amount: string; phase: string; }>; }, "strip", z.ZodTypeAny, { withdrawal: { amount: string; phase: string; }; }, { withdrawal: { amount: string; phase: string; }; }>]>; }, "strip", z.ZodTypeAny, { time: number; hash: string; delta: { delegate: { validator: string; amount: string; isUndelegate: boolean; }; } | { cDeposit: { amount: string; }; } | { withdrawal: { amount: string; phase: string; }; }; }, { time: number; hash: string; delta: { delegate: { validator: string; amount: string; isUndelegate: boolean; }; } | { cDeposit: { amount: string; }; } | { withdrawal: { amount: string; phase: string; }; }; }>, "many">; export type DelegatorSummary = z.infer; export type Delegation = z.infer; export type StakingReward = z.infer; export type DelegationHistoryEvent = z.infer; export type SpotBalance = z.infer; export type DelegatorHistoryDelta = DelegationHistoryEvent['delta'];