import * as zod from 'zod'; import { CrossmintProtectedInputProps } from '../../types/index.js'; import { IFrameWindow } from '@crossmint/client-sdk-window'; import { CrossmintApiClient } from '@crossmint/common-sdk-base'; import '../../types/events/internal/index.js'; import '../../types/events/internal/events.js'; import '../../types/events/internal/payloads.js'; import '../../types/system.js'; import '../../types/events/public/events.js'; import '../../types/embed/v3/events/incoming.js'; import '../../types/embed/v3/events/outgoing.js'; import '../../types/embed/v3/events/EmbeddedCheckoutV3IFrameEmitter.js'; import '../../types/payment-method-management/events/incoming.js'; import '../../types/payment-method-management/events/outgoing.js'; import '../../types/payment-method-management/events/PaymentMethodManagementIFrameEmitter.js'; import '../../types/payment-method-management/OrderIntents.js'; import '../../types/payment-method-management/PaymentMethodAgenticEnrollment.js'; import '../../types/payment-method-management/VerificationAppearance.js'; import '../../types/identity-verification/events/incoming.js'; import '../../types/identity-verification/events/outgoing.js'; import '../../types/identity-verification/events/IdentityVerificationIFrameEmitter.js'; import '../../types/embedded-offramp/events/incoming.js'; import '../../types/embedded-offramp/events/outgoing.js'; import '../../types/embedded-offramp/events/EmbeddedOfframpIFrameEmitter.js'; import '../../types/cvc-recollection/events/incoming.js'; import '../../types/cvc-recollection/events/outgoing.js'; import '../../types/cvc-recollection/events/CvcRecollectionIFrameEmitter.js'; import '../../types/protected-input/events/incoming.js'; import '../../types/protected-input/events/outgoing.js'; import '../../types/protected-input/events/ProtectedInputIFrameEmitter.js'; import '../../types/CryptoCurrency.js'; type ProtectedInputServiceProps = { apiClient: Pick; }; declare function createProtectedInputService({ apiClient }: ProtectedInputServiceProps): { iframe: { getUrl: (props: CrossmintProtectedInputProps) => string; createClient: (iframe: HTMLIFrameElement) => IFrameWindow<{ "ui:height.changed": zod.ZodObject<{ height: zod.ZodNumber; }, "strip", zod.ZodTypeAny, { height: number; }, { height: number; }>; "protected-input:result": zod.ZodObject<{ requestId: zod.ZodString; result: zod.ZodDiscriminatedUnion<"status", [zod.ZodObject<{ status: zod.ZodLiteral<"collected">; input: zod.ZodObject<{ protectedInputId: zod.ZodString; }, "strip", zod.ZodTypeAny, { protectedInputId: string; }, { protectedInputId: string; }>; }, "strip", zod.ZodTypeAny, { status: "collected"; input: { protectedInputId: string; }; }, { status: "collected"; input: { protectedInputId: string; }; }>, zod.ZodObject<{ status: zod.ZodLiteral<"invalid">; code: zod.ZodString; message: zod.ZodString; }, "strip", zod.ZodTypeAny, { code: string; message: string; status: "invalid"; }, { code: string; message: string; status: "invalid"; }>, zod.ZodObject<{ status: zod.ZodLiteral<"unavailable">; code: zod.ZodString; message: zod.ZodString; }, "strip", zod.ZodTypeAny, { code: string; message: string; status: "unavailable"; }, { code: string; message: string; status: "unavailable"; }>, zod.ZodObject<{ status: zod.ZodLiteral<"superseded">; message: zod.ZodString; }, "strip", zod.ZodTypeAny, { message: string; status: "superseded"; }, { message: string; status: "superseded"; }>]>; }, "strip", zod.ZodTypeAny, { requestId: string; result: { status: "collected"; input: { protectedInputId: string; }; } | { code: string; message: string; status: "invalid"; } | { code: string; message: string; status: "unavailable"; } | { message: string; status: "superseded"; }; }, { requestId: string; result: { status: "collected"; input: { protectedInputId: string; }; } | { code: string; message: string; status: "invalid"; } | { code: string; message: string; status: "unavailable"; } | { message: string; status: "superseded"; }; }>; }, { "protected-input:collect": zod.ZodObject<{ requestId: zod.ZodString; jwt: zod.ZodString; apiKey: zod.ZodString; expiresAt: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { requestId: string; jwt: string; apiKey: string; expiresAt?: string | undefined; }, { requestId: string; jwt: string; apiKey: string; expiresAt?: string | undefined; }>; "protected-input:reset": zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>; "protected-input:state": zod.ZodObject<{ disabled: zod.ZodBoolean; invalid: zod.ZodBoolean; }, "strip", zod.ZodTypeAny, { invalid: boolean; disabled: boolean; }, { invalid: boolean; disabled: boolean; }>; }>; }; }; export { type ProtectedInputServiceProps, createProtectedInputService };