import { C as CashPayoutInfo, I as IntentEntity, a as CashBuyerProfile, b as CashDepositInput, c as CreateDepositParamsArg, d as CashOrder, e as CashFill, f as CashCapabilities, g as CashoutResult, h as CashEstimate, i as CashFillStats, N as NearIntentsSourceCapabilities, j as NearIntentsDepositInput, k as NearIntentsQuote, l as NearIntentsQuoteInput, m as NearIntentsStatus, n as NearIntentsStatusInput, P as PrepareResult, o as CashPreparedStep, p as PreparedVenmoGmailConnect, R as RelayExecutionResult, q as RelayQuote, r as RelayStatus, s as CashSourceCapabilities, T as TopUpResult, W as WithdrawResult } from './createCashClient-CZgoTClw.js'; export { B as BASE_CHAIN_ID, t as BASE_USDC_ADDRESS, u as CASH_ATTRIBUTION_CODE, v as CASH_ORDER_POLL_INTERVAL_MS, w as CASH_ORDER_STATUSES, x as CASH_REFERRAL_ATTRIBUTION_PREFIX, y as CASH_RETAIN_ON_EMPTY, z as CashAsset, A as CashChain, D as CashClient, E as CashClientOptions, F as CashCorridorPricing, G as CashFillEta, H as CashLeg, J as CashMultiCurrencyLeg, K as CashNextAction, L as CashOrderState, M as CashPairFillStats, O as CashPayeeInput, Q as CashPayout, S as CashPayoutPricing, U as CashPlatformCapability, V as CashPreparedStepKind, X as CashReceiveLeg, Y as CashoutInput, Z as CashoutOptions, _ as CuratorPayeeDataInput, $ as EstimateInput, a0 as EstimateOptions, a1 as MARKET_SPREAD_BPS, a2 as MIN_CASHOUT_AMOUNT, a3 as NEAR_INTENTS_API_URL, a4 as NEAR_INTENTS_BASE_USDC_ASSET_ID, a5 as NEAR_INTENTS_DEFAULT_SLIPPAGE_BPS, a6 as NEAR_INTENTS_STATUSES, a7 as NearIntentsClient, a8 as NearIntentsOptions, a9 as NearIntentsQuoteRequest, aa as NearIntentsStatusCode, ab as NearIntentsToken, ac as NearIntentsTradeType, ad as NearIntentsTransaction, ae as ORACLE_MIN_CONVERSION_RATE_SENTINEL, af as OrdersOptions, ag as PreparedCashoutReceipt, ah as RECOMMENDED_MIN_CASHOUT_AMOUNT, ai as RelayOptions, aj as RelayQuoteInput, ak as RelaySourceInput, al as RelayTransaction, am as SignerOptions, an as USDC_DECIMALS, ao as WatchOptions, ap as WithdrawOptions, aq as buildCapabilities, ar as createCashClient, as as createNearIntentsClient, at as normalizeCashPayee, au as quoteNearIntentsToBaseUsdc, av as readNearIntentsSourceCapabilities, aw as readNearIntentsStatus, ax as submitNearIntentsDeposit, ay as toCashReferralAttributionCode } from './createCashClient-CZgoTClw.js'; import { PublicClient, Log, Abi } from 'viem'; import { PaymentMethodCatalog, CurrencyType, OracleAdapterOverrides, OnchainCurrency, Zkp2pClient, PreparedTransaction, VenmoGmailConnectResult } from '@zkp2p/sdk'; export { CurrencyType, PreparedTransaction, RuntimeEnv, VenmoGmailConnectError, VenmoGmailConnectResult } from '@zkp2p/sdk'; import { z } from 'zod'; import '@relayprotocol/relay-sdk'; /** * Typed errors - every failure carries a `code`, whether it is `retryable`, * and a `remediation` sentence so agents can self-drive recovery. */ type CashErrorCode = 'ORACLE_UNSUPPORTED_CURRENCY' | 'ORACLE_READ_FAILED' | 'UNSUPPORTED_PLATFORM' | 'UNSUPPORTED_PLATFORM_CURRENCY' | 'AMOUNT_BELOW_MINIMUM' | 'INVALID_INTENT_AMOUNT_RANGE' | 'INVALID_PAYOUT_CURRENCIES' | 'INVALID_PAYOUT_PLATFORMS' | 'INVALID_REFERRAL_CODE' | 'ACTIVE_INTENT_BLOCKS_WITHDRAWAL' | 'NOTHING_TO_WITHDRAW' | 'INSUFFICIENT_AVAILABLE_FUNDS' | 'INSUFFICIENT_TOKEN_BALANCE' | 'ORDER_NOT_ACTIVE' | 'INVALID_DEPOSIT_ID' | 'ESCROW_PAUSED' | 'INDEXER_LAG' | 'INDEXER_UNAVAILABLE' | 'ORDER_NOT_FOUND' | 'PAYEE_REGISTRATION_FAILED' | 'PAYEE_VERIFICATION_REQUIRED' | 'ATOMIC_ACCESS_POLICY_REQUIRED' | 'SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE' | 'SOURCE_RECIPIENT_MISMATCH' | 'SOURCE_CAPABILITIES_FAILED' | 'SOURCE_QUOTE_FAILED' | 'SOURCE_NONCE_MANAGER_REQUIRED' | 'SOURCE_EXECUTION_FAILED' | 'SOURCE_DEPOSIT_SUBMISSION_FAILED' | 'SOURCE_STATUS_FAILED' | 'SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED' | 'SOURCE_CASHOUT_SUBMISSION_UNKNOWN' | 'SOURCE_CASHOUT_STATUS_UNKNOWN' | 'DEPOSIT_RESOLUTION_FAILED' | 'ACCESS_POLICY_CONFIGURATION_FAILED' | 'ALLOWANCE_NOT_VISIBLE' | 'SIGNER_REQUIRED' | 'SIGNER_CHAIN_MISMATCH' | 'SIGNER_CHAIN_UNAVAILABLE' | 'WATCH_TIMEOUT' | 'TRANSACTION_REJECTED' | 'TRANSACTION_FAILED' | 'TRANSACTION_SUBMISSION_UNKNOWN' | 'TRANSACTION_STATUS_UNKNOWN'; interface CashErrorShape { code: CashErrorCode; message: string; retryable: boolean; remediation: string; recovery?: CashErrorRecovery; } interface CashSourceRecoveryBase { /** Guaranteed Base USDC output available for the retry, as a decimal bigint string. */ amount: string; requestId?: string; txHashes: string[]; transactions?: { origin: Array<{ hash: string; chainId: number; isBatchTx?: boolean | undefined; }>; destination: Array<{ hash: string; chainId: number; isBatchTx?: boolean | undefined; }>; }; } type CashErrorRecovery = (CashSourceRecoveryBase & { kind: 'retry-base-usdc-cashout'; }) | (CashSourceRecoveryBase & { kind: 'inspect-base-cashout-transaction'; depositTxHash: string; }) | (CashSourceRecoveryBase & { kind: 'inspect-base-cashout-submission'; depositor: string; }) | { kind: 'inspect-relay-route'; requestId?: string; txHashes: string[]; transactions?: CashSourceRecoveryBase['transactions']; } | { kind: 'inspect-base-operation-submission'; operation: string; } | { kind: 'inspect-base-transaction'; transactionHash: string; operation: string; } | { kind: 'configure-cashout-access-policy'; depositId: string; groupIds: string[]; paymentMethod?: string; transactionHash?: string; /** Present when Relay funded the already-created deposit. */ source?: CashSourceRecoveryBase; }; declare class CashError extends Error implements CashErrorShape { readonly code: CashErrorCode; readonly retryable: boolean; readonly remediation: string; readonly recovery?: CashErrorRecovery; constructor(shape: CashErrorShape, options?: { cause?: unknown; }); /** Serializable view (for tool results and logs). */ toJSON(): CashErrorShape; } declare function isCashError(value: unknown): value is CashError; /** Factory helpers keep call sites one-liners and remediation copy consistent. */ declare const errors: { oracleUnsupportedCurrency: (currency: string) => CashError; oracleReadFailed: (currency: string, cause?: unknown) => CashError; unsupportedPlatform: (platform: string) => CashError; unsupportedPlatformCurrency: (platform: string, currency: string) => CashError; amountBelowMinimum: (amount: bigint, min: bigint) => CashError; invalidIntentAmountRange: (amount: bigint, min: bigint, max: bigint) => CashError; invalidPayoutCurrencies: (platform: string, reason: string) => CashError; invalidPayoutPlatforms: (reason: string) => CashError; invalidReferralCode: () => CashError; activeIntentBlocksWithdrawal: (depositId: string) => CashError; insufficientAvailableFunds: (depositId: string, requested: bigint, available: bigint) => CashError; insufficientTokenBalance: (requiredAmount?: bigint) => CashError; orderNotActive: (depositId: string) => CashError; invalidDepositId: (depositId: string, cause?: unknown) => CashError; nothingToWithdraw: (depositId: string) => CashError; indexerLag: (depositId: string) => CashError; orderNotFound: (depositId: string) => CashError; indexerUnavailable: (operation: string, cause?: unknown) => CashError; payeeRegistrationFailed: (cause: unknown) => CashError; payeeVerificationRequired: (platform: string, cause?: unknown) => CashError; /** @deprecated Cash-outs no longer require an atomic access-policy flow. */ atomicAccessPolicyRequired: (platforms: readonly string[]) => CashError; sourceRouteUnsupportedInPrepare: () => CashError; sourceRecipientMismatch: (recipient: string, owner: string) => CashError; sourceCapabilitiesFailed: (cause?: unknown, provider?: string, capabilityMethod?: string) => CashError; sourceQuoteFailed: (cause?: unknown, provider?: string, quoteMethod?: string) => CashError; sourceNonceManagerRequired: (transactionCount: number) => CashError; sourceExecutionFailed: (cause?: unknown, evidence?: { requestId?: string; txHashes: string[]; transactions?: CashSourceRecoveryBase["transactions"]; }) => CashError; sourceDepositSubmissionFailed: (depositAddress: string, cause?: unknown) => CashError; sourceStatusFailed: (requestId: string, cause?: unknown, provider?: string, statusMethod?: string) => CashError; sourceRouteCompletedCashoutFailed: (source: { amount: bigint; requestId?: string; txHashes: string[]; transactions?: CashSourceRecoveryBase["transactions"]; }, cause?: unknown) => CashError; sourceCashoutSubmissionUnknown: (source: { amount: bigint; requestId?: string; txHashes: string[]; transactions?: CashSourceRecoveryBase["transactions"]; }, depositor: string, cause?: unknown) => CashError; sourceCashoutStatusUnknown: (source: { amount: bigint; requestId?: string; txHashes: string[]; transactions?: CashSourceRecoveryBase["transactions"]; }, depositTxHash: string, cause?: unknown) => CashError; allowanceNotVisible: (amount: bigint, cause?: unknown) => CashError; depositResolutionFailed: (txHash: string) => CashError; signerRequired: (verb: string) => CashError; signerChainMismatch: (verb: string, expectedChainId: number, actualChainId: number) => CashError; signerChainUnavailable: (verb: string, expectedChainId: number, cause?: unknown) => CashError; watchTimeout: (depositId: string, timeoutMs: number) => CashError; transactionFailed: (txHash: string, cause?: unknown) => CashError; transactionRejected: (verb: string, cause?: unknown) => CashError; transactionSubmissionUnknown: (operation: string, cause?: unknown, recovery?: CashErrorRecovery) => CashError; transactionStatusUnknown: (txHash: string, cause?: unknown, operation?: string) => CashError; accessPolicyConfigurationFailed: (depositId: string, groupIds: readonly string[], context?: { cause?: unknown; paymentMethod?: string; transactionHash?: string; source?: { amount: bigint; requestId?: string; txHashes: string[]; transactions?: CashSourceRecoveryBase["transactions"]; }; }) => CashError; escrowPaused: () => CashError; /** Generic fallback for an on-chain call that failed for an unrecognized reason. */ chainCallFailed: (verb: string, cause?: unknown) => CashError; }; /** Detect EIP-1193 and viem wallet cancellations, including nested provider causes. */ declare function isUserRejectedError(value: unknown): boolean; declare const CREATION_RATE_MAX_STALENESS_SECONDS = 86400; interface CreationRateSnapshot { /** Fiat units per USDC, scaled by 1e18 for EscrowV2. */ rate1e18: bigint; /** Human-readable fiat units per USDC. */ rate: number; /** Unix timestamp of the source observation. */ updatedAt: number; } type CreationRateReader = (platform: string, currency: string) => Promise; /** Cash corridors whose fresh market rate is fixed when the deposit is created. */ declare function isCreationRateCorridor(platform: string, currency: string): boolean; /** Backward-compatible Alipay/CNY reader. */ declare function readAlipayCnyCreationRate(publicClient: PublicClient, nowSeconds?: number): Promise; /** * Convert a human USDC amount to base units (6 decimals). * * @example * usdc(1000) // 1_000_000_000n * usdc('12.34') // 12_340_000n */ declare function usdc(amount: number | string): bigint; /** Format USDC base units back to a decimal string (no trailing zeros). */ declare function formatUsdc(amount: bigint): string; /** Protocol rate precision - conversion rates are fiat-per-USDC scaled by 1e18. */ declare const RATE_PRECISION: bigint; /** * Fiat owed for a USDC amount at a locked 1e18 conversion rate, in fiat base * units (6 decimals), rounded UP to the nearest cent - the same math the * protocol clients use, so the number matches what the buyer is told to pay. */ declare function fiatFromUsdc(amount: bigint, conversionRate: bigint): bigint; /** Decode a 1e18 conversion rate to a plain number (fiat per USDC). */ declare function rateToNumber(conversionRate: bigint): number; /** Decode fiat base units (6 decimals) to a plain number. */ declare function fiatToNumber(fiat: bigint): number; /** Decode fiat cents (verified `paymentAmount` precision) to a plain number. */ declare function centsToNumber(cents: bigint): number; /** The raw indexed shape of a deposit's payment method (relation row). */ interface PaymentMethodLike { paymentMethodHash?: string | null; payeeDetailsHash?: string | null; active?: boolean | null; } /** The raw indexed shape of a per-method currency tuple (relation row). */ interface MethodCurrencyLike { paymentMethodHash?: string | null; currencyCode?: string | null; spreadBps?: number | string | null; kind?: string | null; rateSource?: string | null; oracleRate?: string | number | bigint | null; lastOracleUpdatedAt?: string | number | null; minConversionRate?: string | number | bigint | null; } /** * Decode a deposit's payment methods + currency tuples into payout legs. * Pure - the environment arrives via the catalog. One leg per * (method, currency) pair; a cash order carries one or several platforms. If * any method is absent from the active catalog, reject the whole set instead * of partially reclassifying a mixed historical deposit. */ declare function derivePayouts(paymentMethods: ReadonlyArray, currencies: ReadonlyArray, catalog: PaymentMethodCatalog): CashPayoutInfo[]; /** * Peer Cash - buyer reputation, derived purely from the buyer's own intent * history. The anxious moment in a cash-out is `matched`: a stranger's * address is holding your order. This turns that address into a track record. */ /** Aggregate a buyer's full intent history into a profile. Pure and deterministic. */ declare function deriveBuyerProfile(address: string, intents: ReadonlyArray): CashBuyerProfile; /** * Whether a currency can use the signal-time on-chain market rate. Only * currencies with a Chainlink feed (`supportsSpreadOracle`) qualify. */ declare function isMarketRateSupported(currency: CurrencyType, adapters?: OracleAdapterOverrides): boolean; /** Whether Cash can construct this exact platform/currency corridor. */ declare function isCashCorridorSupported(platform: string, currency: CurrencyType, adapters?: OracleAdapterOverrides): boolean; /** * Build a single oracle-backed currency tuple priced at market (0% spread). * Returns `null` for currencies without a Chainlink feed. */ declare function buildMarketRateCurrencyOverride(currency: CurrencyType, adapters?: OracleAdapterOverrides): OnchainCurrency | null; declare function buildIntentAmountRange(amount: bigint): { min: bigint; max: bigint; }; /** * Prepare the full `createDeposit` params for a zero-spread cash-out. * * Registers payee details with the curator (no auth), resolves payment-method * hashes + the gating service from the catalog, and assembles the override * arrays with signal-time oracle configs. Alipay/CNY and UPI/INR instead fix * fresh Chainlink snapshots from Ethereum and Polygon as their maker floors. */ declare function prepareCashDepositParams(client: Zkp2pClient, input: CashDepositInput, adapters?: OracleAdapterOverrides, creationRateReader?: CreationRateReader): Promise; /** * Whether a signaled fill can still be completed by its buyer. Uses the * indexer's reconciler flag when present, belt-and-braces with the local * clock (the reconciler can lag; the clock can skew - either signal counts). */ declare function isFillLive(fill: CashFill, nowSeconds: number): boolean; interface DeriveCashOrderOptions { /** Original deposit amount, when already computed (else derived from the parts below). */ totalAmount?: bigint; /** `remainingDeposits` - currently available, unlocked balance. */ remainingAmount?: bigint; /** `outstandingIntentAmount` - currently locked by an active (SIGNALED) intent. */ outstandingAmount?: bigint; /** `totalAmountTaken` - cumulative amount delivered to buyers (cashed out). */ takenAmount?: bigint; /** `totalWithdrawn` - cumulative amount returned to the maker. */ withdrawnAmount?: bigint; /** Deposit status from the indexer: `ACTIVE` | `CLOSED`. */ status?: string; /** Total intent count from the indexer aggregate. */ intentCount?: number; /** Unix seconds of the deposit's last on-chain change. */ updatedAt?: number; /** Payout legs reconstructed from the deposit relations (see `derivePayouts`). */ payouts?: CashPayoutInfo[]; /** Deposit quality signal (basis points) from the indexer aggregate. */ successRateBps?: number; /** * Whether per-fill intent detail is present. Defaults to `intents.length > 0`. * Pass `false` on list rows (deposits fetched without their intents) so * `nextActions` treats a positive outstanding amount as a live lock rather * than offering a withdraw that would revert. */ fillsIncluded?: boolean; /** Unix seconds "now" for expiry-sensitive `nextActions` (defaults to wall clock). */ nowSeconds?: number; } /** Plain-data view of {@link CashOrder} (everything except the `explain` method). */ type CashOrderData = Omit; /** * One honest sentence from live data - never a fake countdown. The binding * rate resolves at the oracle when a buyer fills, and buyer arrival time is * unknowable, so the sentence only ever states what the chain actually shows. */ declare function explainOrder(order: CashOrderData): string; /** Attach the `explain()` method to plain order data (used by codecs on parse). */ declare function withExplain(data: CashOrderData): CashOrder; /** * Derive the resumable {@link CashOrder} view for one deposit. Pure and * deterministic - safe on every poll, list render, or cold page load. */ declare function deriveCashOrder(depositId: string, intents: ReadonlyArray, options?: DeriveCashOrderOptions): CashOrder; /** * Peer Cash - resolve the composite deposit id from a `createDeposit` receipt. * * `createDeposit` returns only a tx hash; the on-chain `depositId` is assigned by * the contract and emitted in `DepositReceived` (indexed). We decode it from the * receipt logs using the real escrow ABI so the order can be keyed on the * composite id (`escrow_onchainId`) the indexer uses. */ interface ResolvedCashDeposit { onchainDepositId: bigint; escrowAddress: string; compositeId: string; /** Base-unit amount emitted by the canonical DepositReceived event. */ amount?: bigint; } declare function resolveCashDepositId(params: { logs: readonly Log[]; abi: Abi; expectedEscrowAddress?: string; expectedToken?: string; }): ResolvedCashDeposit | null; /** Split a composite deposit id (`escrow_onchainId`) back into its parts. */ declare function parseCompositeDepositId(compositeId: string): { escrowAddress: string; onchainDepositId: bigint; }; /** * zod schemas for every wire type. The wire format encodes bigints as decimal * strings so orders, estimates, and prepared txs cross tool-call and process * boundaries losslessly. */ declare const bigintString: z.ZodString; declare const nonNegativeBigintString: z.ZodString; declare const nearIntentsTokenJsonSchema: z.ZodObject<{ assetId: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; blockchain: z.ZodString; price: z.ZodOptional>>; priceUpdatedAt: z.ZodOptional; contractAddress: z.ZodOptional>; }, z.core.$loose>; declare const nearIntentsTokensResponseSchema: z.ZodArray>>; priceUpdatedAt: z.ZodOptional; contractAddress: z.ZodOptional>; }, z.core.$loose>>; declare const nearIntentsQuoteRequestJsonSchema: z.ZodObject<{ dry: z.ZodBoolean; swapType: z.ZodEnum<{ EXACT_INPUT: "EXACT_INPUT"; EXACT_OUTPUT: "EXACT_OUTPUT"; }>; slippageTolerance: z.ZodNumber; originAsset: z.ZodString; depositType: z.ZodLiteral<"ORIGIN_CHAIN">; destinationAsset: z.ZodString; amount: z.ZodString; refundTo: z.ZodString; refundType: z.ZodLiteral<"ORIGIN_CHAIN">; recipient: z.ZodString; recipientType: z.ZodLiteral<"DESTINATION_CHAIN">; deadline: z.ZodString; depositMode: z.ZodLiteral<"SIMPLE">; }, z.core.$strict>; declare const nearIntentsQuoteResponseSchema: z.ZodObject<{ correlationId: z.ZodOptional; timestamp: z.ZodString; signature: z.ZodString; quoteRequest: z.ZodObject<{ dry: z.ZodBoolean; swapType: z.ZodEnum<{ EXACT_INPUT: "EXACT_INPUT"; EXACT_OUTPUT: "EXACT_OUTPUT"; }>; slippageTolerance: z.ZodNumber; originAsset: z.ZodString; depositType: z.ZodLiteral<"ORIGIN_CHAIN">; destinationAsset: z.ZodString; amount: z.ZodString; refundTo: z.ZodString; refundType: z.ZodLiteral<"ORIGIN_CHAIN">; recipient: z.ZodString; recipientType: z.ZodLiteral<"DESTINATION_CHAIN">; deadline: z.ZodString; depositMode: z.ZodLiteral<"SIMPLE">; }, z.core.$loose>; quote: z.ZodObject<{ amountIn: z.ZodString; minAmountIn: z.ZodString; amountOut: z.ZodString; minAmountOut: z.ZodString; amountInFormatted: z.ZodOptional; amountInUsd: z.ZodOptional; amountOutFormatted: z.ZodOptional; amountOutUsd: z.ZodOptional; timeEstimate: z.ZodOptional; depositAddress: z.ZodOptional; depositMemo: z.ZodOptional; deadline: z.ZodOptional; timeWhenInactive: z.ZodOptional; refundFee: z.ZodOptional; withdrawFee: z.ZodOptional; }, z.core.$loose>; }, z.core.$loose>; declare const nearIntentsStatusCodeSchema: z.ZodEnum<{ PENDING_DEPOSIT: "PENDING_DEPOSIT"; KNOWN_DEPOSIT_TX: "KNOWN_DEPOSIT_TX"; PROCESSING: "PROCESSING"; SUCCESS: "SUCCESS"; INCOMPLETE_DEPOSIT: "INCOMPLETE_DEPOSIT"; REFUNDED: "REFUNDED"; FAILED: "FAILED"; }>; declare const nearIntentsStatusResponseSchema: z.ZodObject<{ correlationId: z.ZodOptional; quoteResponse: z.ZodObject<{ timestamp: z.ZodString; quote: z.ZodObject<{ amountIn: z.ZodString; minAmountIn: z.ZodString; amountOut: z.ZodString; minAmountOut: z.ZodString; amountInFormatted: z.ZodOptional; amountInUsd: z.ZodOptional; amountOutFormatted: z.ZodOptional; amountOutUsd: z.ZodOptional; timeEstimate: z.ZodOptional; depositAddress: z.ZodOptional; depositMemo: z.ZodOptional; deadline: z.ZodOptional; timeWhenInactive: z.ZodOptional; refundFee: z.ZodOptional; withdrawFee: z.ZodOptional; }, z.core.$loose>; signature: z.ZodString; quoteRequest: z.ZodObject<{ dry: z.ZodBoolean; swapType: z.ZodEnum<{ EXACT_INPUT: "EXACT_INPUT"; EXACT_OUTPUT: "EXACT_OUTPUT"; }>; slippageTolerance: z.ZodNumber; originAsset: z.ZodString; depositType: z.ZodLiteral<"ORIGIN_CHAIN">; destinationAsset: z.ZodString; amount: z.ZodString; refundTo: z.ZodString; refundType: z.ZodLiteral<"ORIGIN_CHAIN">; recipient: z.ZodString; recipientType: z.ZodLiteral<"DESTINATION_CHAIN">; deadline: z.ZodString; depositMode: z.ZodLiteral<"SIMPLE">; }, z.core.$loose>; }, z.core.$loose>; status: z.ZodEnum<{ PENDING_DEPOSIT: "PENDING_DEPOSIT"; KNOWN_DEPOSIT_TX: "KNOWN_DEPOSIT_TX"; PROCESSING: "PROCESSING"; SUCCESS: "SUCCESS"; INCOMPLETE_DEPOSIT: "INCOMPLETE_DEPOSIT"; REFUNDED: "REFUNDED"; FAILED: "FAILED"; }>; updatedAt: z.ZodOptional; swapDetails: z.ZodOptional>; nearTxHashes: z.ZodOptional>; originChainTxHashes: z.ZodOptional]>>; }, z.core.$loose>]>>>; destinationChainTxHashes: z.ZodOptional]>>; }, z.core.$loose>]>>>; amountIn: z.ZodOptional>; amountOut: z.ZodOptional>; refundedAmount: z.ZodOptional>; refundReason: z.ZodOptional>; }, z.core.$loose>>>; }, z.core.$loose>; declare const nearIntentsQuoteInputJsonSchema: z.ZodObject<{ sourceAsset: z.ZodString; amount: z.ZodString; recipient: z.ZodString; refundTo: z.ZodString; tradeType: z.ZodEnum<{ EXACT_INPUT: "EXACT_INPUT"; EXACT_OUTPUT: "EXACT_OUTPUT"; }>; deadline: z.ZodString; slippageTolerance: z.ZodOptional; dry: z.ZodOptional; }, z.core.$strict>; declare const nearIntentsDepositInputJsonSchema: z.ZodObject<{ depositAddress: z.ZodString; txHash: z.ZodString; depositMemo: z.ZodOptional; }, z.core.$strict>; declare const nearIntentsSourceCapabilitiesJsonSchema: z.ZodObject<{ destination: z.ZodObject<{ assetId: z.ZodString; chainId: z.ZodLiteral<8453>; address: z.ZodString; symbol: z.ZodLiteral<"USDC">; decimals: z.ZodLiteral<6>; }, z.core.$strip>; assets: z.ZodArray>>; priceUpdatedAt: z.ZodOptional; contractAddress: z.ZodOptional>; }, z.core.$loose>>; source: z.ZodLiteral<"near-intents">; asOf: z.ZodNumber; }, z.core.$strict>; declare const nearIntentsQuoteJsonSchema: z.ZodObject<{ provider: z.ZodLiteral<"near-intents">; correlationId: z.ZodOptional; sourceAsset: z.ZodString; destinationAsset: z.ZodString; inputAmount: z.ZodString; minInputAmount: z.ZodString; outputAmount: z.ZodString; minOutputAmount: z.ZodString; timeEstimateSeconds: z.ZodOptional; depositAddress: z.ZodOptional; depositMemo: z.ZodOptional; deadline: z.ZodOptional; signature: z.ZodString; request: z.ZodObject<{ dry: z.ZodBoolean; swapType: z.ZodEnum<{ EXACT_INPUT: "EXACT_INPUT"; EXACT_OUTPUT: "EXACT_OUTPUT"; }>; slippageTolerance: z.ZodNumber; originAsset: z.ZodString; depositType: z.ZodLiteral<"ORIGIN_CHAIN">; destinationAsset: z.ZodString; amount: z.ZodString; refundTo: z.ZodString; refundType: z.ZodLiteral<"ORIGIN_CHAIN">; recipient: z.ZodString; recipientType: z.ZodLiteral<"DESTINATION_CHAIN">; deadline: z.ZodString; depositMode: z.ZodLiteral<"SIMPLE">; }, z.core.$strict>; raw: z.ZodUnknown; }, z.core.$strict>; declare const nearIntentsStatusInputJsonSchema: z.ZodObject<{ depositAddress: z.ZodString; depositMemo: z.ZodOptional; expectedQuote: z.ZodOptional; correlationId: z.ZodOptional; sourceAsset: z.ZodString; destinationAsset: z.ZodString; inputAmount: z.ZodString; minInputAmount: z.ZodString; outputAmount: z.ZodString; minOutputAmount: z.ZodString; timeEstimateSeconds: z.ZodOptional; depositAddress: z.ZodOptional; depositMemo: z.ZodOptional; deadline: z.ZodOptional; signature: z.ZodString; request: z.ZodObject<{ dry: z.ZodBoolean; swapType: z.ZodEnum<{ EXACT_INPUT: "EXACT_INPUT"; EXACT_OUTPUT: "EXACT_OUTPUT"; }>; slippageTolerance: z.ZodNumber; originAsset: z.ZodString; depositType: z.ZodLiteral<"ORIGIN_CHAIN">; destinationAsset: z.ZodString; amount: z.ZodString; refundTo: z.ZodString; refundType: z.ZodLiteral<"ORIGIN_CHAIN">; recipient: z.ZodString; recipientType: z.ZodLiteral<"DESTINATION_CHAIN">; deadline: z.ZodString; depositMode: z.ZodLiteral<"SIMPLE">; }, z.core.$strict>; raw: z.ZodUnknown; }, z.core.$strict>>; }, z.core.$strict>; declare const nearIntentsTransactionJsonSchema: z.ZodObject<{ hash: z.ZodString; explorerUrl: z.ZodOptional; }, z.core.$strict>; declare const nearIntentsStatusJsonSchema: z.ZodObject<{ provider: z.ZodLiteral<"near-intents">; correlationId: z.ZodOptional; depositAddress: z.ZodString; depositMemo: z.ZodOptional; status: z.ZodEnum<{ PENDING_DEPOSIT: "PENDING_DEPOSIT"; KNOWN_DEPOSIT_TX: "KNOWN_DEPOSIT_TX"; PROCESSING: "PROCESSING"; SUCCESS: "SUCCESS"; INCOMPLETE_DEPOSIT: "INCOMPLETE_DEPOSIT"; REFUNDED: "REFUNDED"; FAILED: "FAILED"; }>; updatedAt: z.ZodOptional; inputAmount: z.ZodOptional; outputAmount: z.ZodOptional; refundedAmount: z.ZodOptional; refundReason: z.ZodOptional; intentHashes: z.ZodArray; nearTransactionHashes: z.ZodArray; originTransactions: z.ZodArray; }, z.core.$strict>>; destinationTransactions: z.ZodArray; }, z.core.$strict>>; raw: z.ZodUnknown; }, z.core.$strict>; declare const relayTransactionJsonSchema: z.ZodObject<{ hash: z.ZodString; chainId: z.ZodNumber; isBatchTx: z.ZodOptional; }, z.core.$strip>; declare const relayTransactionsJsonSchema: z.ZodObject<{ origin: z.ZodArray; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>; declare const cashAssetJsonSchema: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; name: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; declare const cashChainJsonSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; displayName: z.ZodString; disabled: z.ZodBoolean; depositEnabled: z.ZodBoolean; blockProductionLagging: z.ZodBoolean; vmType: z.ZodOptional; tokens: z.ZodArray; isNative: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; declare const cashSourceCapabilitiesJsonSchema: z.ZodObject<{ destination: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; name: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; chains: z.ZodArray; tokens: z.ZodArray; isNative: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; source: z.ZodLiteral<"relay-sdk">; asOf: z.ZodNumber; }, z.core.$strip>; declare const cashOrderStateSchema: z.ZodEnum<{ "awaiting-buyer": "awaiting-buyer"; matched: "matched"; delivering: "delivering"; delivered: "delivered"; returned: "returned"; }>; declare const cashNextActionSchema: z.ZodEnum<{ wait: "wait"; withdraw: "withdraw"; }>; declare const intentStatusSchema: z.ZodEnum<{ SIGNALED: "SIGNALED"; FULFILLED: "FULFILLED"; PRUNED: "PRUNED"; MANUALLY_RELEASED: "MANUALLY_RELEASED"; }>; declare const cashFillJsonSchema: z.ZodObject<{ intentHash: z.ZodString; status: z.ZodEnum<{ SIGNALED: "SIGNALED"; FULFILLED: "FULFILLED"; PRUNED: "PRUNED"; MANUALLY_RELEASED: "MANUALLY_RELEASED"; }>; amount: z.ZodString; buyer: z.ZodString; currency: z.ZodOptional; currencyHash: z.ZodOptional; rate: z.ZodOptional; conversionRate: z.ZodOptional; fiatOwed: z.ZodOptional; fiatPaid: z.ZodOptional; paidCurrency: z.ZodOptional; paymentId: z.ZodOptional; paidAt: z.ZodOptional; releasedAmount: z.ZodOptional; fillLatencySeconds: z.ZodOptional; isExpired: z.ZodOptional; signaledAt: z.ZodOptional; expiresAt: z.ZodOptional; fulfilledAt: z.ZodOptional; prunedAt: z.ZodOptional; }, z.core.$strip>; declare const cashPayoutPricingJsonSchema: z.ZodObject<{ spreadBps: z.ZodOptional; kind: z.ZodOptional; rateSource: z.ZodOptional; oracleRate: z.ZodOptional; lastOracleUpdatedAt: z.ZodOptional; marketRate: z.ZodBoolean; fixedAtCreation: z.ZodOptional; fixedRate: z.ZodOptional; }, z.core.$strip>; declare const cashPayoutInfoJsonSchema: z.ZodObject<{ platform: z.ZodString; platformHash: z.ZodString; currency: z.ZodOptional; currencyHash: z.ZodOptional; payeeHash: z.ZodString; active: z.ZodBoolean; pricing: z.ZodObject<{ spreadBps: z.ZodOptional; kind: z.ZodOptional; rateSource: z.ZodOptional; oracleRate: z.ZodOptional; lastOracleUpdatedAt: z.ZodOptional; marketRate: z.ZodBoolean; fixedAtCreation: z.ZodOptional; fixedRate: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; declare const cashBuyerProfileJsonSchema: z.ZodObject<{ address: z.ZodString; totalIntents: z.ZodNumber; fulfilled: z.ZodNumber; pruned: z.ZodNumber; signaled: z.ZodNumber; successRateBps: z.ZodOptional; firstSeenAt: z.ZodOptional; lastSeenAt: z.ZodOptional; }, z.core.$strip>; declare const cashOrderJsonSchema: z.ZodObject<{ depositId: z.ZodString; state: z.ZodEnum<{ "awaiting-buyer": "awaiting-buyer"; matched: "matched"; delivering: "delivering"; delivered: "delivered"; returned: "returned"; }>; fills: z.ZodArray; amount: z.ZodString; buyer: z.ZodString; currency: z.ZodOptional; currencyHash: z.ZodOptional; rate: z.ZodOptional; conversionRate: z.ZodOptional; fiatOwed: z.ZodOptional; fiatPaid: z.ZodOptional; paidCurrency: z.ZodOptional; paymentId: z.ZodOptional; paidAt: z.ZodOptional; releasedAmount: z.ZodOptional; fillLatencySeconds: z.ZodOptional; isExpired: z.ZodOptional; signaledAt: z.ZodOptional; expiresAt: z.ZodOptional; fulfilledAt: z.ZodOptional; prunedAt: z.ZodOptional; }, z.core.$strip>>; totalAmount: z.ZodString; filledAmount: z.ZodString; pendingAmount: z.ZodString; returnedAmount: z.ZodString; nextActions: z.ZodArray>; primaryIntentHash: z.ZodOptional; matchedAt: z.ZodOptional; deliveredAt: z.ZodOptional; updatedAt: z.ZodOptional; intentCount: z.ZodOptional; payouts: z.ZodOptional; currencyHash: z.ZodOptional; payeeHash: z.ZodString; active: z.ZodBoolean; pricing: z.ZodObject<{ spreadBps: z.ZodOptional; kind: z.ZodOptional; rateSource: z.ZodOptional; oracleRate: z.ZodOptional; lastOracleUpdatedAt: z.ZodOptional; marketRate: z.ZodBoolean; fixedAtCreation: z.ZodOptional; fixedRate: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>>; successRateBps: z.ZodOptional; isInFlight: z.ZodBoolean; withdrawn: z.ZodOptional; }, z.core.$strip>; declare const cashEstimateJsonSchema: z.ZodObject<{ kind: z.ZodLiteral<"oracle-estimate">; binding: z.ZodOptional>; currency: z.ZodString; amount: z.ZodString; rate: z.ZodNumber; receiveAmount: z.ZodNumber; asOf: z.ZodNumber; oracleUpdatedAt: z.ZodOptional; stale: z.ZodOptional; source: z.ZodOptional; asset: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; name: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; inputAmount: z.ZodString; relayQuote: z.ZodObject<{ requestId: z.ZodOptional; source: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; name: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; destination: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; name: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; inputAmount: z.ZodString; outputAmount: z.ZodString; rate: z.ZodOptional; timeEstimateSeconds: z.ZodOptional; fees: z.ZodOptional; txs: z.ZodArray>; raw: z.ZodUnknown; }, z.core.$strip>; }, z.core.$strip>>; eta: z.ZodOptional; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; declare const cashPairFillStatsJsonSchema: z.ZodObject<{ fills: z.ZodNumber; medianFillSeconds: z.ZodOptional; }, z.core.$strict>; declare const cashFillStatsJsonSchema: z.ZodRecord; }, z.core.$strict>>; declare const preparedTransactionJsonSchema: z.ZodObject<{ to: z.ZodString; data: z.ZodString; value: z.ZodString; chainId: z.ZodNumber; }, z.core.$strip>; declare const relayQuoteJsonSchema: z.ZodObject<{ requestId: z.ZodOptional; source: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; name: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; destination: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodString; symbol: z.ZodString; decimals: z.ZodNumber; name: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; inputAmount: z.ZodString; outputAmount: z.ZodString; rate: z.ZodOptional; timeEstimateSeconds: z.ZodOptional; fees: z.ZodOptional; txs: z.ZodArray>; raw: z.ZodUnknown; }, z.core.$strip>; declare const relayStatusJsonSchema: z.ZodObject<{ requestId: z.ZodString; status: z.ZodEnum<{ pending: "pending"; refund: "refund"; waiting: "waiting"; depositing: "depositing"; failure: "failure"; submitted: "submitted"; success: "success"; }>; details: z.ZodOptional; inTxHashes: z.ZodArray; txHashes: z.ZodArray; updatedAt: z.ZodOptional; originChainId: z.ZodOptional; destinationChainId: z.ZodOptional; quoteCreatedAt: z.ZodOptional; raw: z.ZodUnknown; }, z.core.$strip>; declare const relayExecutionResultJsonSchema: z.ZodObject<{ requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; quote: z.ZodUnknown; }, z.core.$strip>; declare const cashPreparedStepJsonSchema: z.ZodObject<{ kind: z.ZodEnum<{ createDeposit: "createDeposit"; approve: "approve"; pruneExpiredIntents: "pruneExpiredIntents"; withdrawDeposit: "withdrawDeposit"; removeFunds: "removeFunds"; addFunds: "addFunds"; }>; description: z.ZodString; }, z.core.$strip>; declare const cashoutResultJsonSchema: z.ZodObject<{ depositId: z.ZodString; txHash: z.ZodString; escrowAddress: z.ZodString; onchainDepositId: z.ZodString; order: z.ZodObject<{ depositId: z.ZodString; state: z.ZodEnum<{ "awaiting-buyer": "awaiting-buyer"; matched: "matched"; delivering: "delivering"; delivered: "delivered"; returned: "returned"; }>; fills: z.ZodArray; amount: z.ZodString; buyer: z.ZodString; currency: z.ZodOptional; currencyHash: z.ZodOptional; rate: z.ZodOptional; conversionRate: z.ZodOptional; fiatOwed: z.ZodOptional; fiatPaid: z.ZodOptional; paidCurrency: z.ZodOptional; paymentId: z.ZodOptional; paidAt: z.ZodOptional; releasedAmount: z.ZodOptional; fillLatencySeconds: z.ZodOptional; isExpired: z.ZodOptional; signaledAt: z.ZodOptional; expiresAt: z.ZodOptional; fulfilledAt: z.ZodOptional; prunedAt: z.ZodOptional; }, z.core.$strip>>; totalAmount: z.ZodString; filledAmount: z.ZodString; pendingAmount: z.ZodString; returnedAmount: z.ZodString; nextActions: z.ZodArray>; primaryIntentHash: z.ZodOptional; matchedAt: z.ZodOptional; deliveredAt: z.ZodOptional; updatedAt: z.ZodOptional; intentCount: z.ZodOptional; payouts: z.ZodOptional; currencyHash: z.ZodOptional; payeeHash: z.ZodString; active: z.ZodBoolean; pricing: z.ZodObject<{ spreadBps: z.ZodOptional; kind: z.ZodOptional; rateSource: z.ZodOptional; oracleRate: z.ZodOptional; lastOracleUpdatedAt: z.ZodOptional; marketRate: z.ZodBoolean; fixedAtCreation: z.ZodOptional; fixedRate: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>>; successRateBps: z.ZodOptional; isInFlight: z.ZodBoolean; withdrawn: z.ZodOptional; }, z.core.$strip>; accessPolicyTxHash: z.ZodOptional; accessPolicyTxHashes: z.ZodOptional>; source: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strip>>; }, z.core.$strip>; declare const prepareResultJsonSchema: z.ZodObject<{ txs: z.ZodArray>; steps: z.ZodArray; description: z.ZodString; }, z.core.$strip>>; register: z.ZodObject<{ hashedOnchainIds: z.ZodArray; }, z.core.$strip>; accessPolicyRequired: z.ZodBoolean; accessPolicyPaymentMethods: z.ZodOptional>; }, z.core.$strip>; declare const withdrawResultJsonSchema: z.ZodObject<{ depositId: z.ZodString; pruneTxHash: z.ZodOptional; withdrawTxHash: z.ZodString; }, z.core.$strip>; declare const topUpResultJsonSchema: z.ZodObject<{ depositId: z.ZodString; txHash: z.ZodString; }, z.core.$strip>; declare const cashCapabilitiesJsonSchema: z.ZodObject<{ chainId: z.ZodNumber; token: z.ZodObject<{ address: z.ZodString; symbol: z.ZodLiteral<"USDC">; decimals: z.ZodNumber; }, z.core.$strip>; environment: z.ZodEnum<{ production: "production"; preproduction: "preproduction"; staging: "staging"; }>; destination: z.ZodObject<{ chainId: z.ZodNumber; token: z.ZodObject<{ address: z.ZodString; symbol: z.ZodLiteral<"USDC">; decimals: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; source: z.ZodObject<{ default: z.ZodObject<{ chainId: z.ZodNumber; token: z.ZodObject<{ address: z.ZodString; symbol: z.ZodLiteral<"USDC">; decimals: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; relay: z.ZodOptional; isNative: z.ZodOptional; }, z.core.$strip>; chains: z.ZodArray; tokens: z.ZodArray; isNative: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; source: z.ZodLiteral<"relay-sdk">; asOf: z.ZodNumber; }, z.core.$strip>>; nearIntents: z.ZodOptional; address: z.ZodString; symbol: z.ZodLiteral<"USDC">; decimals: z.ZodLiteral<6>; }, z.core.$strip>; assets: z.ZodArray>>; priceUpdatedAt: z.ZodOptional; contractAddress: z.ZodOptional>; }, z.core.$loose>>; source: z.ZodLiteral<"near-intents">; asOf: z.ZodNumber; }, z.core.$strict>>; }, z.core.$strip>; platforms: z.ZodArray; payeeHint: z.ZodString; pricing: z.ZodOptional; spreadBps: z.ZodLiteral<0>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"fixed-at-deposit-creation">; source: z.ZodLiteral<"chainlink-ethereum">; spreadBps: z.ZodLiteral<0>; }, z.core.$strip>]>>>; requiresIdentityAttestation: z.ZodBoolean; requiresAtomicAccessPolicy: z.ZodOptional; }, z.core.$strip>>; currencies: z.ZodArray; amount: z.ZodObject<{ min: z.ZodString; recommendedMin: z.ZodString; max: z.ZodNull; }, z.core.$strip>; pricing: z.ZodObject<{ kind: z.ZodLiteral<"oracle-market-rate">; spreadBps: z.ZodLiteral<0>; }, z.core.$strip>; }, z.core.$strip>; declare const cashErrorRecoveryJsonSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"retry-base-usdc-cashout">; amount: z.ZodString; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-cashout-transaction">; depositTxHash: z.ZodString; amount: z.ZodString; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-cashout-submission">; depositor: z.ZodString; amount: z.ZodString; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-relay-route">; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-operation-submission">; operation: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-transaction">; transactionHash: z.ZodString; operation: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"configure-cashout-access-policy">; depositId: z.ZodString; groupIds: z.ZodArray; paymentMethod: z.ZodOptional; transactionHash: z.ZodOptional; source: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>], "kind">; declare const cashErrorJsonSchema: z.ZodObject<{ code: z.ZodEnum<{ ORACLE_UNSUPPORTED_CURRENCY: "ORACLE_UNSUPPORTED_CURRENCY"; ORACLE_READ_FAILED: "ORACLE_READ_FAILED"; UNSUPPORTED_PLATFORM: "UNSUPPORTED_PLATFORM"; UNSUPPORTED_PLATFORM_CURRENCY: "UNSUPPORTED_PLATFORM_CURRENCY"; AMOUNT_BELOW_MINIMUM: "AMOUNT_BELOW_MINIMUM"; INVALID_INTENT_AMOUNT_RANGE: "INVALID_INTENT_AMOUNT_RANGE"; INVALID_PAYOUT_CURRENCIES: "INVALID_PAYOUT_CURRENCIES"; INVALID_PAYOUT_PLATFORMS: "INVALID_PAYOUT_PLATFORMS"; INVALID_REFERRAL_CODE: "INVALID_REFERRAL_CODE"; ACTIVE_INTENT_BLOCKS_WITHDRAWAL: "ACTIVE_INTENT_BLOCKS_WITHDRAWAL"; NOTHING_TO_WITHDRAW: "NOTHING_TO_WITHDRAW"; INSUFFICIENT_AVAILABLE_FUNDS: "INSUFFICIENT_AVAILABLE_FUNDS"; INSUFFICIENT_TOKEN_BALANCE: "INSUFFICIENT_TOKEN_BALANCE"; ORDER_NOT_ACTIVE: "ORDER_NOT_ACTIVE"; INVALID_DEPOSIT_ID: "INVALID_DEPOSIT_ID"; ESCROW_PAUSED: "ESCROW_PAUSED"; INDEXER_LAG: "INDEXER_LAG"; INDEXER_UNAVAILABLE: "INDEXER_UNAVAILABLE"; ORDER_NOT_FOUND: "ORDER_NOT_FOUND"; PAYEE_REGISTRATION_FAILED: "PAYEE_REGISTRATION_FAILED"; PAYEE_VERIFICATION_REQUIRED: "PAYEE_VERIFICATION_REQUIRED"; ATOMIC_ACCESS_POLICY_REQUIRED: "ATOMIC_ACCESS_POLICY_REQUIRED"; SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE: "SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE"; SOURCE_RECIPIENT_MISMATCH: "SOURCE_RECIPIENT_MISMATCH"; SOURCE_CAPABILITIES_FAILED: "SOURCE_CAPABILITIES_FAILED"; SOURCE_QUOTE_FAILED: "SOURCE_QUOTE_FAILED"; SOURCE_NONCE_MANAGER_REQUIRED: "SOURCE_NONCE_MANAGER_REQUIRED"; SOURCE_EXECUTION_FAILED: "SOURCE_EXECUTION_FAILED"; SOURCE_DEPOSIT_SUBMISSION_FAILED: "SOURCE_DEPOSIT_SUBMISSION_FAILED"; SOURCE_STATUS_FAILED: "SOURCE_STATUS_FAILED"; SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED: "SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED"; SOURCE_CASHOUT_SUBMISSION_UNKNOWN: "SOURCE_CASHOUT_SUBMISSION_UNKNOWN"; SOURCE_CASHOUT_STATUS_UNKNOWN: "SOURCE_CASHOUT_STATUS_UNKNOWN"; DEPOSIT_RESOLUTION_FAILED: "DEPOSIT_RESOLUTION_FAILED"; ACCESS_POLICY_CONFIGURATION_FAILED: "ACCESS_POLICY_CONFIGURATION_FAILED"; ALLOWANCE_NOT_VISIBLE: "ALLOWANCE_NOT_VISIBLE"; SIGNER_REQUIRED: "SIGNER_REQUIRED"; SIGNER_CHAIN_MISMATCH: "SIGNER_CHAIN_MISMATCH"; SIGNER_CHAIN_UNAVAILABLE: "SIGNER_CHAIN_UNAVAILABLE"; WATCH_TIMEOUT: "WATCH_TIMEOUT"; TRANSACTION_REJECTED: "TRANSACTION_REJECTED"; TRANSACTION_FAILED: "TRANSACTION_FAILED"; TRANSACTION_SUBMISSION_UNKNOWN: "TRANSACTION_SUBMISSION_UNKNOWN"; TRANSACTION_STATUS_UNKNOWN: "TRANSACTION_STATUS_UNKNOWN"; }>; message: z.ZodString; retryable: z.ZodBoolean; remediation: z.ZodString; recovery: z.ZodOptional; amount: z.ZodString; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-cashout-transaction">; depositTxHash: z.ZodString; amount: z.ZodString; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-cashout-submission">; depositor: z.ZodString; amount: z.ZodString; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-relay-route">; requestId: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-operation-submission">; operation: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"inspect-base-transaction">; transactionHash: z.ZodString; operation: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"configure-cashout-access-policy">; depositId: z.ZodString; groupIds: z.ZodArray; paymentMethod: z.ZodOptional; transactionHash: z.ZodOptional; source: z.ZodOptional; txHashes: z.ZodArray; transactions: z.ZodOptional; }, z.core.$strip>>; destination: z.ZodArray; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>], "kind">>; }, z.core.$strict>; type CashOrderJson = z.infer; type NearIntentsTokenJson = z.infer; type NearIntentsQuoteInputJson = z.infer; type NearIntentsDepositInputJson = z.infer; type NearIntentsStatusInputJson = z.infer; type NearIntentsSourceCapabilitiesJson = z.infer; type NearIntentsQuoteJson = z.infer; type NearIntentsStatusJson = z.infer; type CashFillJson = z.infer; type CashEstimateJson = z.infer; type CashFillStatsJson = z.infer; type PreparedTransactionJson = z.infer; type CashoutResultJson = z.infer; type PrepareResultJson = z.infer; type WithdrawResultJson = z.infer; type TopUpResultJson = z.infer; type CashPreparedStepJson = z.infer; type CashPayoutInfoJson = z.infer; type CashBuyerProfileJson = z.infer; type CashCapabilitiesJson = z.infer; type RelayTransactionJson = z.infer; type RelayTransactionsJson = z.infer; type CashAssetJson = z.infer; type CashChainJson = z.infer; type CashSourceCapabilitiesJson = z.infer; type RelayQuoteJson = z.infer; type RelayStatusJson = z.infer; type RelayExecutionResultJson = z.infer; type CashErrorRecoveryJson = z.infer; type CashErrorJson = z.infer; declare const venmoGmailConnectResultJsonSchema: z.ZodObject<{ payeeDetails: z.ZodString; }, z.core.$strip>; declare const preparedVenmoGmailConnectJsonSchema: z.ZodObject<{ payeeDetails: z.ZodString; url: z.ZodURL; }, z.core.$strip>; type VenmoGmailConnectResultJson = z.infer; type PreparedVenmoGmailConnectJson = z.infer; /** * JSON codecs - lossless (de)serialization for every wire type. bigints encode * as decimal strings; `parse*` validates with the zod schema and re-attaches * derived behavior (`order.explain()`). */ declare function fillToJson(fill: CashFill): CashFillJson; declare function fillFromJson(json: unknown): CashFill; declare function orderToJson(order: CashOrder): CashOrderJson; declare function orderFromJson(json: unknown): CashOrder; declare function estimateToJson(estimate: CashEstimate): CashEstimateJson; declare function estimateFromJson(json: unknown): CashEstimate; declare function fillStatsToJson(stats: CashFillStats): CashFillStatsJson; declare function fillStatsFromJson(json: unknown): CashFillStats; declare function relayQuoteToJson(quote: RelayQuote): RelayQuoteJson; declare function relayQuoteFromJson(json: unknown): RelayQuote; declare function sourceCapabilitiesToJson(capabilities: CashSourceCapabilities): CashSourceCapabilitiesJson; declare function sourceCapabilitiesFromJson(json: unknown): CashSourceCapabilities; declare function relayStatusToJson(status: RelayStatus): RelayStatusJson; declare function relayStatusFromJson(json: unknown): RelayStatus; declare function relayExecutionResultToJson(result: RelayExecutionResult): RelayExecutionResultJson; declare function relayExecutionResultFromJson(json: unknown): RelayExecutionResult; declare function nearIntentsQuoteInputToJson(input: NearIntentsQuoteInput): NearIntentsQuoteInputJson; declare function nearIntentsQuoteInputFromJson(json: unknown): NearIntentsQuoteInput; declare function nearIntentsDepositInputToJson(input: NearIntentsDepositInput): NearIntentsDepositInputJson; declare function nearIntentsDepositInputFromJson(json: unknown): NearIntentsDepositInput; declare function nearIntentsStatusInputToJson(input: NearIntentsStatusInput): NearIntentsStatusInputJson; declare function nearIntentsStatusInputFromJson(json: unknown): NearIntentsStatusInput; declare function nearIntentsCapabilitiesToJson(capabilities: NearIntentsSourceCapabilities): NearIntentsSourceCapabilitiesJson; declare function nearIntentsCapabilitiesFromJson(json: unknown): NearIntentsSourceCapabilities; declare function nearIntentsQuoteToJson(quote: NearIntentsQuote): NearIntentsQuoteJson; declare function nearIntentsQuoteFromJson(json: unknown): NearIntentsQuote; declare function nearIntentsStatusToJson(status: NearIntentsStatus): NearIntentsStatusJson; declare function nearIntentsStatusFromJson(json: unknown): NearIntentsStatus; declare function preparedTxToJson(tx: PreparedTransaction): PreparedTransactionJson; declare function preparedTxFromJson(json: unknown): PreparedTransaction; declare function preparedStepToJson(step: CashPreparedStep): CashPreparedStepJson; declare function preparedStepFromJson(json: unknown): CashPreparedStep; declare function cashoutResultToJson(result: CashoutResult): CashoutResultJson; declare function cashoutResultFromJson(json: unknown): CashoutResult; declare function prepareResultToJson(result: PrepareResult): PrepareResultJson; declare function prepareResultFromJson(json: unknown): PrepareResult; declare function withdrawResultToJson(result: WithdrawResult): WithdrawResultJson; declare function withdrawResultFromJson(json: unknown): WithdrawResult; declare function buyerProfileToJson(profile: CashBuyerProfile): CashBuyerProfileJson; declare function buyerProfileFromJson(json: unknown): CashBuyerProfile; declare function topUpResultToJson(result: TopUpResult): TopUpResultJson; declare function topUpResultFromJson(json: unknown): TopUpResult; declare function capabilitiesToJson(caps: CashCapabilities): CashCapabilitiesJson; declare function capabilitiesFromJson(json: unknown): CashCapabilities; declare function cashErrorToJson(error: CashErrorShape): CashErrorJson; declare function cashErrorFromJson(json: unknown): CashError; declare function preparedVenmoGmailConnectToJson(value: PreparedVenmoGmailConnect): PreparedVenmoGmailConnectJson; declare function preparedVenmoGmailConnectFromJson(json: unknown): PreparedVenmoGmailConnect; declare function venmoGmailConnectResultToJson(value: VenmoGmailConnectResult): VenmoGmailConnectResultJson; declare function venmoGmailConnectResultFromJson(json: unknown): VenmoGmailConnectResult; export { CREATION_RATE_MAX_STALENESS_SECONDS, type CashAssetJson, CashBuyerProfile, type CashBuyerProfileJson, CashCapabilities, type CashCapabilitiesJson, type CashChainJson, CashDepositInput, CashError, type CashErrorCode, type CashErrorJson, type CashErrorRecovery, type CashErrorRecoveryJson, type CashErrorShape, CashEstimate, type CashEstimateJson, CashFill, type CashFillJson, CashFillStats, type CashFillStatsJson, CashOrder, type CashOrderData, type CashOrderJson, CashPayoutInfo, type CashPayoutInfoJson, CashPreparedStep, type CashPreparedStepJson, CashSourceCapabilities, type CashSourceCapabilitiesJson, CashoutResult, type CashoutResultJson, type CreationRateReader, type CreationRateSnapshot, type DeriveCashOrderOptions, type MethodCurrencyLike, NearIntentsDepositInput, type NearIntentsDepositInputJson, NearIntentsQuote, NearIntentsQuoteInput, type NearIntentsQuoteInputJson, type NearIntentsQuoteJson, NearIntentsSourceCapabilities, type NearIntentsSourceCapabilitiesJson, NearIntentsStatus, NearIntentsStatusInput, type NearIntentsStatusInputJson, type NearIntentsStatusJson, type NearIntentsTokenJson, type PaymentMethodLike, PrepareResult, type PrepareResultJson, type PreparedTransactionJson, PreparedVenmoGmailConnect, type PreparedVenmoGmailConnectJson, RATE_PRECISION, RelayExecutionResult, type RelayExecutionResultJson, RelayQuote, type RelayQuoteJson, RelayStatus, type RelayStatusJson, type RelayTransactionJson, type RelayTransactionsJson, type ResolvedCashDeposit, TopUpResult, type TopUpResultJson, type VenmoGmailConnectResultJson, WithdrawResult, type WithdrawResultJson, bigintString, buildIntentAmountRange, buildMarketRateCurrencyOverride, buyerProfileFromJson, buyerProfileToJson, capabilitiesFromJson, capabilitiesToJson, cashAssetJsonSchema, cashBuyerProfileJsonSchema, cashCapabilitiesJsonSchema, cashChainJsonSchema, cashErrorFromJson, cashErrorJsonSchema, cashErrorRecoveryJsonSchema, cashErrorToJson, cashEstimateJsonSchema, cashFillJsonSchema, cashFillStatsJsonSchema, cashNextActionSchema, cashOrderJsonSchema, cashOrderStateSchema, cashPairFillStatsJsonSchema, cashPayoutInfoJsonSchema, cashPayoutPricingJsonSchema, cashPreparedStepJsonSchema, cashSourceCapabilitiesJsonSchema, cashoutResultFromJson, cashoutResultJsonSchema, cashoutResultToJson, centsToNumber, deriveBuyerProfile, deriveCashOrder, derivePayouts, errors, estimateFromJson, estimateToJson, explainOrder, fiatFromUsdc, fiatToNumber, fillFromJson, fillStatsFromJson, fillStatsToJson, fillToJson, formatUsdc, intentStatusSchema, isCashCorridorSupported, isCashError, isCreationRateCorridor, isFillLive, isMarketRateSupported, isUserRejectedError, nearIntentsCapabilitiesFromJson, nearIntentsCapabilitiesToJson, nearIntentsDepositInputFromJson, nearIntentsDepositInputJsonSchema, nearIntentsDepositInputToJson, nearIntentsQuoteFromJson, nearIntentsQuoteInputFromJson, nearIntentsQuoteInputJsonSchema, nearIntentsQuoteInputToJson, nearIntentsQuoteJsonSchema, nearIntentsQuoteRequestJsonSchema, nearIntentsQuoteResponseSchema, nearIntentsQuoteToJson, nearIntentsSourceCapabilitiesJsonSchema, nearIntentsStatusCodeSchema, nearIntentsStatusFromJson, nearIntentsStatusInputFromJson, nearIntentsStatusInputJsonSchema, nearIntentsStatusInputToJson, nearIntentsStatusJsonSchema, nearIntentsStatusResponseSchema, nearIntentsStatusToJson, nearIntentsTokenJsonSchema, nearIntentsTokensResponseSchema, nearIntentsTransactionJsonSchema, nonNegativeBigintString, orderFromJson, orderToJson, parseCompositeDepositId, prepareCashDepositParams, prepareResultFromJson, prepareResultJsonSchema, prepareResultToJson, preparedStepFromJson, preparedStepToJson, preparedTransactionJsonSchema, preparedTxFromJson, preparedTxToJson, preparedVenmoGmailConnectFromJson, preparedVenmoGmailConnectJsonSchema, preparedVenmoGmailConnectToJson, rateToNumber, readAlipayCnyCreationRate, relayExecutionResultFromJson, relayExecutionResultJsonSchema, relayExecutionResultToJson, relayQuoteFromJson, relayQuoteJsonSchema, relayQuoteToJson, relayStatusFromJson, relayStatusJsonSchema, relayStatusToJson, relayTransactionJsonSchema, relayTransactionsJsonSchema, resolveCashDepositId, sourceCapabilitiesFromJson, sourceCapabilitiesToJson, topUpResultFromJson, topUpResultJsonSchema, topUpResultToJson, usdc, venmoGmailConnectResultFromJson, venmoGmailConnectResultJsonSchema, venmoGmailConnectResultToJson, withExplain, withdrawResultFromJson, withdrawResultJsonSchema, withdrawResultToJson };