import * as zod from 'zod'; import { CrossmintEmbeddedOfframpProps } from '../../types/index.cjs'; import { IFrameWindow } from '@crossmint/client-sdk-window'; import { CrossmintApiClient } from '@crossmint/common-sdk-base'; import '../../types/events/internal/index.cjs'; import '../../types/events/internal/events.cjs'; import '../../types/events/internal/payloads.cjs'; import '../../types/system.cjs'; import '../../types/events/public/events.cjs'; import '../../types/embed/v3/events/incoming.cjs'; import '../../types/embed/v3/events/outgoing.cjs'; import '../../types/embed/v3/events/EmbeddedCheckoutV3IFrameEmitter.cjs'; import '../../types/payment-method-management/events/incoming.cjs'; import '../../types/payment-method-management/events/outgoing.cjs'; import '../../types/payment-method-management/events/PaymentMethodManagementIFrameEmitter.cjs'; import '../../types/payment-method-management/OrderIntents.cjs'; import '../../types/payment-method-management/PaymentMethodAgenticEnrollment.cjs'; import '../../types/payment-method-management/VerificationAppearance.cjs'; import '../../types/identity-verification/events/incoming.cjs'; import '../../types/identity-verification/events/outgoing.cjs'; import '../../types/identity-verification/events/IdentityVerificationIFrameEmitter.cjs'; import '../../types/embedded-offramp/events/incoming.cjs'; import '../../types/embedded-offramp/events/outgoing.cjs'; import '../../types/embedded-offramp/events/EmbeddedOfframpIFrameEmitter.cjs'; import '../../types/cvc-recollection/events/incoming.cjs'; import '../../types/cvc-recollection/events/outgoing.cjs'; import '../../types/cvc-recollection/events/CvcRecollectionIFrameEmitter.cjs'; import '../../types/protected-input/events/incoming.cjs'; import '../../types/protected-input/events/outgoing.cjs'; import '../../types/protected-input/events/ProtectedInputIFrameEmitter.cjs'; import '../../types/CryptoCurrency.cjs'; type EmbeddedOfframpServiceProps = { apiClient: CrossmintApiClient; }; declare function createEmbeddedOfframpService({ apiClient }: EmbeddedOfframpServiceProps): { iframe: { getUrl: (props: CrossmintEmbeddedOfframpProps) => string; createClient: (iframe: HTMLIFrameElement) => IFrameWindow<{ "ui:height.changed": zod.ZodObject<{ height: zod.ZodNumber; }, "strip", zod.ZodTypeAny, { height: number; }, { height: number; }>; "offramp:ready": zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>; "offramp:status": zod.ZodObject<{ status: zod.ZodEnum<["loading", "entering-amount", "selecting-bank", "adding-bank", "verifying-identity", "identity-in-review", "reviewing", "awaiting-signature", "confirming-deposit", "completed", "payout-completed", "payout-failed", "failed"]>; orderId: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { status: "completed" | "failed" | "loading" | "entering-amount" | "selecting-bank" | "adding-bank" | "verifying-identity" | "identity-in-review" | "reviewing" | "awaiting-signature" | "confirming-deposit" | "payout-completed" | "payout-failed"; orderId?: string | undefined; }, { status: "completed" | "failed" | "loading" | "entering-amount" | "selecting-bank" | "adding-bank" | "verifying-identity" | "identity-in-review" | "reviewing" | "awaiting-signature" | "confirming-deposit" | "payout-completed" | "payout-failed"; orderId?: string | undefined; }>; "offramp:completed": zod.ZodObject<{ orderId: zod.ZodString; txId: zod.ZodString; }, "strip", zod.ZodTypeAny, { txId: string; orderId: string; }, { txId: string; orderId: string; }>; "offramp:cancelled": zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>; "offramp:error": zod.ZodObject<{ reason: zod.ZodEnum<["invalid-credentials", "invalid-configuration", "session-spent", "identity-verification-required", "identity-verification-failed", "wallet-ownership-required", "bank-not-supported", "bank-not-verified", "bank-holder-mismatch", "amount-too-low", "amount-too-high", "exact-payout-unsupported", "insufficient-funds", "wallet-rejected", "payout-failed", "provider-error", "unknown"]>; retriable: zod.ZodBoolean; message: zod.ZodString; }, "strip", zod.ZodTypeAny, { message: string; retriable: boolean; reason: "unknown" | "insufficient-funds" | "invalid-configuration" | "invalid-credentials" | "provider-error" | "payout-failed" | "session-spent" | "identity-verification-required" | "identity-verification-failed" | "wallet-ownership-required" | "bank-not-supported" | "bank-not-verified" | "bank-holder-mismatch" | "amount-too-low" | "amount-too-high" | "exact-payout-unsupported" | "wallet-rejected"; }, { message: string; retriable: boolean; reason: "unknown" | "insufficient-funds" | "invalid-configuration" | "invalid-credentials" | "provider-error" | "payout-failed" | "session-spent" | "identity-verification-required" | "identity-verification-failed" | "wallet-ownership-required" | "bank-not-supported" | "bank-not-verified" | "bank-holder-mismatch" | "amount-too-low" | "amount-too-high" | "exact-payout-unsupported" | "wallet-rejected"; }>; "crypto:send-transaction": zod.ZodObject<{ serializedTransaction: zod.ZodString; chain: zod.ZodString; payerAddress: zod.ZodString; }, "strip", zod.ZodTypeAny, { chain: string; payerAddress: string; serializedTransaction: string; }, { chain: string; payerAddress: string; serializedTransaction: string; }>; }, { "crypto:send-transaction:success": zod.ZodObject<{ txId: zod.ZodString; }, "strip", zod.ZodTypeAny, { txId: string; }, { txId: string; }>; "crypto:send-transaction:failed": zod.ZodObject<{ error: zod.ZodString; rejected: zod.ZodBoolean; }, "strip", zod.ZodTypeAny, { error: string; rejected: boolean; }, { error: string; rejected: boolean; }>; }>; }; }; export { type EmbeddedOfframpServiceProps, createEmbeddedOfframpService };