import { z } from 'zod'; /** * Shared response schemas for Shelby RPC API endpoints. * * These schemas define the contract between the RPC server and SDK client. * Both the server (apps/server) and SDK client (ShelbyRPCClient) should use * these schemas to ensure type safety and runtime validation. */ /** * Response from POST /v1/auth/challenge */ declare const ChallengeResponseSchema: z.ZodObject<{ challenge: z.ZodString; expiresAt: z.ZodNumber; }, "strip", z.ZodTypeAny, { challenge: string; expiresAt: number; }, { challenge: string; expiresAt: number; }>; type ChallengeResponse = z.infer; /** * Error response returned by RPC endpoints on failure. */ declare const RPCErrorResponseSchema: z.ZodObject<{ error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; }, { error: string; }>; type RPCErrorResponse = z.infer; /** * Response from GET /v1/blobs/:account/:blobName when micropayment is stale (409). */ declare const StaleMicropaymentErrorResponseSchema: z.ZodObject<{ error: z.ZodOptional; storedMicropayment: z.ZodOptional; }, "strip", z.ZodTypeAny, { error?: string | undefined; storedMicropayment?: string | undefined; }, { error?: string | undefined; storedMicropayment?: string | undefined; }>; type StaleMicropaymentErrorResponse = z.infer; export { type ChallengeResponse, ChallengeResponseSchema, type RPCErrorResponse, RPCErrorResponseSchema, type StaleMicropaymentErrorResponse, StaleMicropaymentErrorResponseSchema };