import { TradingWithdrawAction, WithdrawDestinationValidationCode } from "../../gen/chain/withdraw/v1/withdraw_pb.js"; import { SdkScales } from "../../shared/decimal-surface.js"; import { U128Value } from "../../utils/u128.js"; import * as v from "valibot"; //#region src/services/trading-withdraws/trading-withdraws.schemas.d.ts type TradingWithdrawIntentPayloadRequest = { action: TradingWithdrawAction; assetId: number; destinationChainId: bigint; amountE18: U128Value; deadlineTsSec: bigint; nonce: U128Value; destinationAddress: string; idempotencyKey: string; }; type CreateTradingWithdrawRequestBase = { subaccountId: bigint | undefined; payload: TradingWithdrawIntentPayloadRequest; payloadSignature?: Uint8Array; }; declare function createCreateTradingWithdrawToFundingInputSchema(scales: SdkScales): v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly quantity: v.StringSchema; readonly idempotencyKey: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly destinationAddress: v.OptionalSchema, v.TrimAction]>, "">; readonly signerWallet: v.OptionalSchema, v.TrimAction]>, "">; readonly payloadSignature: v.OptionalSchema, undefined>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>, v.TransformAction<{ assetId: number; quantity: string; idempotencyKey: string; destinationAddress: string; signerWallet: string; payloadSignature?: Uint8Array | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, CreateTradingWithdrawRequestBase>]>; declare function createCreateTradingWithdrawToExternalChainInputSchema(scales: SdkScales): v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly quantity: v.StringSchema; readonly destinationChainId: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly destinationAddress: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly idempotencyKey: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly signerWallet: v.OptionalSchema, v.TrimAction]>, "">; readonly payloadSignature: v.OptionalSchema, undefined>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>, v.TransformAction<{ assetId: number; quantity: string; destinationChainId: number; destinationAddress: string; idempotencyKey: string; signerWallet: string; payloadSignature?: Uint8Array | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, CreateTradingWithdrawRequestBase>]>; type CreateTradingWithdrawToFundingInput = v.InferInput>; type CreateTradingWithdrawToExternalChainInput = v.InferInput>; declare const CreateTradingWithdrawResultSchema: v.ObjectSchema<{ readonly intentId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>; type CreateTradingWithdrawResult = v.InferOutput; declare const ValidateWithdrawDestinationInputSchema: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly destinationAddress: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ destinationChainId: number; destinationAddress: string; }, { destinationChainId: bigint; destinationAddress: string; }>]>; type ValidateWithdrawDestinationInput = v.InferInput; declare const ValidateWithdrawDestinationResultSchema: v.UnionSchema<[v.SchemaWithPipe; readonly code: v.LiteralSchema; readonly message: v.StringSchema; readonly canonicalDestinationAddress: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ valid: true; code: WithdrawDestinationValidationCode.VALID; message: string; canonicalDestinationAddress: string; }, { code: "valid"; valid: true; message: string; canonicalDestinationAddress: string; }>]>, v.SchemaWithPipe; readonly code: v.PicklistSchema<[WithdrawDestinationValidationCode.RESULT_UNSPECIFIED, WithdrawDestinationValidationCode.INVALID_ADDRESS, WithdrawDestinationValidationCode.UNSUPPORTED_CHAIN, WithdrawDestinationValidationCode.POLYESTER_SMART_ACCOUNT, WithdrawDestinationValidationCode.TOKEN_CONTRACT, WithdrawDestinationValidationCode.DENYLISTED_ADDRESS], undefined>; readonly message: v.StringSchema; readonly canonicalDestinationAddress: v.StringSchema; }, undefined>, v.TransformAction<{ valid: false; code: WithdrawDestinationValidationCode.RESULT_UNSPECIFIED | WithdrawDestinationValidationCode.INVALID_ADDRESS | WithdrawDestinationValidationCode.UNSUPPORTED_CHAIN | WithdrawDestinationValidationCode.POLYESTER_SMART_ACCOUNT | WithdrawDestinationValidationCode.TOKEN_CONTRACT | WithdrawDestinationValidationCode.DENYLISTED_ADDRESS; message: string; canonicalDestinationAddress: string; }, { code: "unspecified" | "invalid_address" | "unsupported_chain" | "polyester_smart_account" | "token_contract" | "denylisted_address"; valid: false; message: string; canonicalDestinationAddress: string; }>]>], undefined>; type ValidateWithdrawDestinationResult = v.InferOutput; //#endregion export { CreateTradingWithdrawResult, CreateTradingWithdrawResultSchema, CreateTradingWithdrawToExternalChainInput, CreateTradingWithdrawToFundingInput, TradingWithdrawIntentPayloadRequest, ValidateWithdrawDestinationInput, ValidateWithdrawDestinationInputSchema, ValidateWithdrawDestinationResult, ValidateWithdrawDestinationResultSchema, createCreateTradingWithdrawToExternalChainInputSchema, createCreateTradingWithdrawToFundingInputSchema }; //# sourceMappingURL=trading-withdraws.schemas.d.ts.map