@swype-org/react-sdk 0.1.208 → 0.2.1-betatest.3c2eec6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -207,8 +207,34 @@ interface UserConfig {
207
207
  }
208
208
  /** Theme mode */
209
209
  type ThemeMode = 'light' | 'dark';
210
+ /** A token available on a source chain for guest transfers */
211
+ interface GuestSourceToken {
212
+ symbol: string;
213
+ address: string;
214
+ decimals: number;
215
+ }
216
+ /** A source chain + its available tokens for guest transfers */
217
+ interface GuestSourceChain {
218
+ chainName: string;
219
+ chainId: number;
220
+ tokens: GuestSourceToken[];
221
+ }
222
+ /** Relay deposit step returned by the guest quote endpoint */
223
+ interface RelayDepositStep {
224
+ to: string;
225
+ data: string;
226
+ value: string;
227
+ chainId: number;
228
+ }
229
+ /** Guest quote response from the API */
230
+ interface GuestQuote {
231
+ requestId: string;
232
+ estimatedFeeUsd: string;
233
+ estimatedOutput: string;
234
+ steps: RelayDepositStep[];
235
+ }
210
236
  /** Steps in the payment flow */
211
- type PaymentStep = 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'wallet-picker' | 'open-wallet' | 'setup-status' | 'setup' | 'confirm-sign' | 'deposit' | 'low-balance' | 'processing' | 'select-source' | 'token-picker' | 'success';
237
+ type PaymentStep = 'guest-deposit' | 'guest-select-source' | 'guest-connecting' | 'guest-signing' | 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'wallet-picker' | 'open-wallet' | 'setup-status' | 'setup' | 'confirm-sign' | 'deposit' | 'low-balance' | 'processing' | 'select-source' | 'token-picker' | 'success' | 'offer-setup' | 'setup-complete';
212
238
  /** User-selected advanced settings for chain/asset override */
213
239
  interface AdvancedSettings {
214
240
  /** Override asset (e.g. 'USDC', 'USDT'). Null = let backend decide. */
@@ -380,16 +406,57 @@ declare function updateUserConfigBySession(apiBaseUrl: string, sessionId: string
380
406
  defaultAllowance: number;
381
407
  }): Promise<void>;
382
408
  declare function reportActionCompletion(apiBaseUrl: string, actionId: string, result: Record<string, unknown>): Promise<AuthorizationSessionDetail>;
409
+ declare function fetchGuestSourceOptions(apiBaseUrl: string): Promise<GuestSourceChain[]>;
410
+ interface GuestQuoteParams {
411
+ merchantAuthorization: MerchantAuthorization;
412
+ sourceAddress: string;
413
+ sourceChainId: number;
414
+ sourceToken: string;
415
+ destinationChainId: number;
416
+ destinationAddress: string;
417
+ destinationToken: string;
418
+ amount: string;
419
+ }
420
+ declare function fetchGuestQuote(apiBaseUrl: string, params: GuestQuoteParams): Promise<GuestQuote>;
421
+ interface CreateGuestTransferParams {
422
+ id: string;
423
+ merchantAuthorization: MerchantAuthorization;
424
+ requestId: string;
425
+ originTxHash: string;
426
+ sourceChainId: number;
427
+ sourceAddress: string;
428
+ destinationChainId: number;
429
+ destinationAddress: string;
430
+ destinationToken: string;
431
+ amount: {
432
+ amount: number;
433
+ currency: string;
434
+ };
435
+ }
436
+ declare function createGuestTransfer(apiBaseUrl: string, params: CreateGuestTransferParams): Promise<{
437
+ id: string;
438
+ status: string;
439
+ }>;
440
+ declare function fetchGuestTransfer(apiBaseUrl: string, transferId: string): Promise<{
441
+ id: string;
442
+ status: string;
443
+ }>;
383
444
 
384
445
  type api_CreateAccountParams = CreateAccountParams;
446
+ type api_CreateGuestTransferParams = CreateGuestTransferParams;
385
447
  type api_CreateTransferParams = CreateTransferParams;
448
+ type api_GuestQuoteParams = GuestQuoteParams;
386
449
  declare const api_createAccount: typeof createAccount;
387
450
  declare const api_createAccountAuthorizationSession: typeof createAccountAuthorizationSession;
451
+ declare const api_createGuestTransfer: typeof createGuestTransfer;
388
452
  declare const api_createTransfer: typeof createTransfer;
389
453
  declare const api_fetchAccount: typeof fetchAccount;
390
454
  declare const api_fetchAccounts: typeof fetchAccounts;
391
455
  declare const api_fetchAuthorizationSession: typeof fetchAuthorizationSession;
392
456
  declare const api_fetchChains: typeof fetchChains;
457
+ declare const api_fetchGuestQuote: typeof fetchGuestQuote;
458
+ declare const api_fetchGuestSourceOptions: typeof fetchGuestSourceOptions;
459
+ declare const api_fetchGuestTransfer: typeof fetchGuestTransfer;
393
460
  declare const api_fetchMerchantPublicKey: typeof fetchMerchantPublicKey;
394
461
  declare const api_fetchProviders: typeof fetchProviders;
395
462
  declare const api_fetchTransfer: typeof fetchTransfer;
@@ -401,7 +468,7 @@ declare const api_signTransfer: typeof signTransfer;
401
468
  declare const api_updateUserConfig: typeof updateUserConfig;
402
469
  declare const api_updateUserConfigBySession: typeof updateUserConfigBySession;
403
470
  declare namespace api {
404
- export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
471
+ export { type api_CreateAccountParams as CreateAccountParams, type api_CreateGuestTransferParams as CreateGuestTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_GuestQuoteParams as GuestQuoteParams, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createGuestTransfer as createGuestTransfer, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchGuestQuote as fetchGuestQuote, api_fetchGuestSourceOptions as fetchGuestSourceOptions, api_fetchGuestTransfer as fetchGuestTransfer, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
405
472
  }
406
473
 
407
474
  interface SwypePaymentProps {
@@ -415,6 +482,12 @@ interface SwypePaymentProps {
415
482
  onBack?: () => void;
416
483
  onDismiss?: () => void;
417
484
  autoCloseSeconds?: number;
485
+ /** EVM numeric chain ID for the source chain (guest flow). */
486
+ sourceChainId?: number;
487
+ /** Source token contract address (guest flow). */
488
+ sourceToken?: string;
489
+ /** Destination EVM numeric chain ID (guest flow). */
490
+ destinationChainId?: number;
418
491
  }
419
492
  declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.Element;
420
493
 
@@ -812,6 +885,56 @@ interface TokenPickerScreenProps {
812
885
  }
813
886
  declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, selectedTokenSymbol, selectedWalletId, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
814
887
 
888
+ interface GuestDepositScreenProps {
889
+ amount: number;
890
+ currency: string;
891
+ merchantName?: string;
892
+ selectedChainName: string | null;
893
+ selectedTokenSymbol: string | null;
894
+ onConfirm: () => void;
895
+ onSignIn: () => void;
896
+ onChangeSource: () => void;
897
+ onBack?: () => void;
898
+ loading?: boolean;
899
+ error?: string | null;
900
+ }
901
+ declare function GuestDepositScreen({ amount, currency, merchantName, selectedChainName, selectedTokenSymbol, onConfirm, onSignIn, onChangeSource, onBack, loading, error, }: GuestDepositScreenProps): react_jsx_runtime.JSX.Element;
902
+
903
+ type GuestWalletPhase = 'connecting' | 'fetching-quote' | 'approving' | 'signing' | 'submitting';
904
+ interface GuestWalletScreenProps {
905
+ phase: GuestWalletPhase;
906
+ amount: number;
907
+ currency: string;
908
+ onBack?: () => void;
909
+ error?: string | null;
910
+ onRetry?: () => void;
911
+ }
912
+ declare function GuestWalletScreen({ phase, amount, currency, onBack, error, onRetry, }: GuestWalletScreenProps): react_jsx_runtime.JSX.Element;
913
+
914
+ interface OfferSetupScreenProps {
915
+ amount: number;
916
+ currency: string;
917
+ onSetup: () => void;
918
+ onDone: () => void;
919
+ }
920
+ declare function OfferSetupScreen({ amount, currency, onSetup, onDone, }: OfferSetupScreenProps): react_jsx_runtime.JSX.Element;
921
+
922
+ interface SetupCompleteScreenProps {
923
+ onDone: () => void;
924
+ }
925
+ declare function SetupCompleteScreen({ onDone }: SetupCompleteScreenProps): react_jsx_runtime.JSX.Element;
926
+
927
+ interface GuestSelectSourceScreenProps {
928
+ chains: GuestSourceChain[];
929
+ selectedChainName: string | null;
930
+ selectedTokenSymbol: string | null;
931
+ onChainChange: (chainName: string, chainId: number) => void;
932
+ onTokenChange: (tokenSymbol: string, tokenAddress: string) => void;
933
+ onConfirm: () => void;
934
+ onBack: () => void;
935
+ }
936
+ declare function GuestSelectSourceScreen({ chains, selectedChainName, selectedTokenSymbol, onChainChange, onTokenChange, onConfirm, onBack, }: GuestSelectSourceScreenProps): react_jsx_runtime.JSX.Element;
937
+
815
938
  type FlowPhase = 'link' | 'deposit';
816
939
 
817
940
  declare function FlowPhaseProvider({ phase, children, }: {
@@ -823,4 +946,4 @@ declare const SWYPE_LOGO: string;
823
946
  /** @deprecated Use SWYPE_LOGO instead. Kept for backward compatibility. */
824
947
  declare const SWYPE_MASCOT: string;
825
948
 
826
- export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, SWYPE_LOGO, SWYPE_MASCOT, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypeLoadingScreen, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };
949
+ export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, GuestDepositScreen, type GuestQuote, GuestSelectSourceScreen, type GuestSourceChain, type GuestSourceToken, GuestWalletScreen, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OfferSetupScreen, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, type RelayDepositStep, SWYPE_LOGO, SWYPE_MASCOT, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupCompleteScreen, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypeLoadingScreen, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };
package/dist/index.d.ts CHANGED
@@ -207,8 +207,34 @@ interface UserConfig {
207
207
  }
208
208
  /** Theme mode */
209
209
  type ThemeMode = 'light' | 'dark';
210
+ /** A token available on a source chain for guest transfers */
211
+ interface GuestSourceToken {
212
+ symbol: string;
213
+ address: string;
214
+ decimals: number;
215
+ }
216
+ /** A source chain + its available tokens for guest transfers */
217
+ interface GuestSourceChain {
218
+ chainName: string;
219
+ chainId: number;
220
+ tokens: GuestSourceToken[];
221
+ }
222
+ /** Relay deposit step returned by the guest quote endpoint */
223
+ interface RelayDepositStep {
224
+ to: string;
225
+ data: string;
226
+ value: string;
227
+ chainId: number;
228
+ }
229
+ /** Guest quote response from the API */
230
+ interface GuestQuote {
231
+ requestId: string;
232
+ estimatedFeeUsd: string;
233
+ estimatedOutput: string;
234
+ steps: RelayDepositStep[];
235
+ }
210
236
  /** Steps in the payment flow */
211
- type PaymentStep = 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'wallet-picker' | 'open-wallet' | 'setup-status' | 'setup' | 'confirm-sign' | 'deposit' | 'low-balance' | 'processing' | 'select-source' | 'token-picker' | 'success';
237
+ type PaymentStep = 'guest-deposit' | 'guest-select-source' | 'guest-connecting' | 'guest-signing' | 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'wallet-picker' | 'open-wallet' | 'setup-status' | 'setup' | 'confirm-sign' | 'deposit' | 'low-balance' | 'processing' | 'select-source' | 'token-picker' | 'success' | 'offer-setup' | 'setup-complete';
212
238
  /** User-selected advanced settings for chain/asset override */
213
239
  interface AdvancedSettings {
214
240
  /** Override asset (e.g. 'USDC', 'USDT'). Null = let backend decide. */
@@ -380,16 +406,57 @@ declare function updateUserConfigBySession(apiBaseUrl: string, sessionId: string
380
406
  defaultAllowance: number;
381
407
  }): Promise<void>;
382
408
  declare function reportActionCompletion(apiBaseUrl: string, actionId: string, result: Record<string, unknown>): Promise<AuthorizationSessionDetail>;
409
+ declare function fetchGuestSourceOptions(apiBaseUrl: string): Promise<GuestSourceChain[]>;
410
+ interface GuestQuoteParams {
411
+ merchantAuthorization: MerchantAuthorization;
412
+ sourceAddress: string;
413
+ sourceChainId: number;
414
+ sourceToken: string;
415
+ destinationChainId: number;
416
+ destinationAddress: string;
417
+ destinationToken: string;
418
+ amount: string;
419
+ }
420
+ declare function fetchGuestQuote(apiBaseUrl: string, params: GuestQuoteParams): Promise<GuestQuote>;
421
+ interface CreateGuestTransferParams {
422
+ id: string;
423
+ merchantAuthorization: MerchantAuthorization;
424
+ requestId: string;
425
+ originTxHash: string;
426
+ sourceChainId: number;
427
+ sourceAddress: string;
428
+ destinationChainId: number;
429
+ destinationAddress: string;
430
+ destinationToken: string;
431
+ amount: {
432
+ amount: number;
433
+ currency: string;
434
+ };
435
+ }
436
+ declare function createGuestTransfer(apiBaseUrl: string, params: CreateGuestTransferParams): Promise<{
437
+ id: string;
438
+ status: string;
439
+ }>;
440
+ declare function fetchGuestTransfer(apiBaseUrl: string, transferId: string): Promise<{
441
+ id: string;
442
+ status: string;
443
+ }>;
383
444
 
384
445
  type api_CreateAccountParams = CreateAccountParams;
446
+ type api_CreateGuestTransferParams = CreateGuestTransferParams;
385
447
  type api_CreateTransferParams = CreateTransferParams;
448
+ type api_GuestQuoteParams = GuestQuoteParams;
386
449
  declare const api_createAccount: typeof createAccount;
387
450
  declare const api_createAccountAuthorizationSession: typeof createAccountAuthorizationSession;
451
+ declare const api_createGuestTransfer: typeof createGuestTransfer;
388
452
  declare const api_createTransfer: typeof createTransfer;
389
453
  declare const api_fetchAccount: typeof fetchAccount;
390
454
  declare const api_fetchAccounts: typeof fetchAccounts;
391
455
  declare const api_fetchAuthorizationSession: typeof fetchAuthorizationSession;
392
456
  declare const api_fetchChains: typeof fetchChains;
457
+ declare const api_fetchGuestQuote: typeof fetchGuestQuote;
458
+ declare const api_fetchGuestSourceOptions: typeof fetchGuestSourceOptions;
459
+ declare const api_fetchGuestTransfer: typeof fetchGuestTransfer;
393
460
  declare const api_fetchMerchantPublicKey: typeof fetchMerchantPublicKey;
394
461
  declare const api_fetchProviders: typeof fetchProviders;
395
462
  declare const api_fetchTransfer: typeof fetchTransfer;
@@ -401,7 +468,7 @@ declare const api_signTransfer: typeof signTransfer;
401
468
  declare const api_updateUserConfig: typeof updateUserConfig;
402
469
  declare const api_updateUserConfigBySession: typeof updateUserConfigBySession;
403
470
  declare namespace api {
404
- export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
471
+ export { type api_CreateAccountParams as CreateAccountParams, type api_CreateGuestTransferParams as CreateGuestTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_GuestQuoteParams as GuestQuoteParams, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createGuestTransfer as createGuestTransfer, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchGuestQuote as fetchGuestQuote, api_fetchGuestSourceOptions as fetchGuestSourceOptions, api_fetchGuestTransfer as fetchGuestTransfer, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
405
472
  }
406
473
 
407
474
  interface SwypePaymentProps {
@@ -415,6 +482,12 @@ interface SwypePaymentProps {
415
482
  onBack?: () => void;
416
483
  onDismiss?: () => void;
417
484
  autoCloseSeconds?: number;
485
+ /** EVM numeric chain ID for the source chain (guest flow). */
486
+ sourceChainId?: number;
487
+ /** Source token contract address (guest flow). */
488
+ sourceToken?: string;
489
+ /** Destination EVM numeric chain ID (guest flow). */
490
+ destinationChainId?: number;
418
491
  }
419
492
  declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.Element;
420
493
 
@@ -812,6 +885,56 @@ interface TokenPickerScreenProps {
812
885
  }
813
886
  declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, selectedTokenSymbol, selectedWalletId, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
814
887
 
888
+ interface GuestDepositScreenProps {
889
+ amount: number;
890
+ currency: string;
891
+ merchantName?: string;
892
+ selectedChainName: string | null;
893
+ selectedTokenSymbol: string | null;
894
+ onConfirm: () => void;
895
+ onSignIn: () => void;
896
+ onChangeSource: () => void;
897
+ onBack?: () => void;
898
+ loading?: boolean;
899
+ error?: string | null;
900
+ }
901
+ declare function GuestDepositScreen({ amount, currency, merchantName, selectedChainName, selectedTokenSymbol, onConfirm, onSignIn, onChangeSource, onBack, loading, error, }: GuestDepositScreenProps): react_jsx_runtime.JSX.Element;
902
+
903
+ type GuestWalletPhase = 'connecting' | 'fetching-quote' | 'approving' | 'signing' | 'submitting';
904
+ interface GuestWalletScreenProps {
905
+ phase: GuestWalletPhase;
906
+ amount: number;
907
+ currency: string;
908
+ onBack?: () => void;
909
+ error?: string | null;
910
+ onRetry?: () => void;
911
+ }
912
+ declare function GuestWalletScreen({ phase, amount, currency, onBack, error, onRetry, }: GuestWalletScreenProps): react_jsx_runtime.JSX.Element;
913
+
914
+ interface OfferSetupScreenProps {
915
+ amount: number;
916
+ currency: string;
917
+ onSetup: () => void;
918
+ onDone: () => void;
919
+ }
920
+ declare function OfferSetupScreen({ amount, currency, onSetup, onDone, }: OfferSetupScreenProps): react_jsx_runtime.JSX.Element;
921
+
922
+ interface SetupCompleteScreenProps {
923
+ onDone: () => void;
924
+ }
925
+ declare function SetupCompleteScreen({ onDone }: SetupCompleteScreenProps): react_jsx_runtime.JSX.Element;
926
+
927
+ interface GuestSelectSourceScreenProps {
928
+ chains: GuestSourceChain[];
929
+ selectedChainName: string | null;
930
+ selectedTokenSymbol: string | null;
931
+ onChainChange: (chainName: string, chainId: number) => void;
932
+ onTokenChange: (tokenSymbol: string, tokenAddress: string) => void;
933
+ onConfirm: () => void;
934
+ onBack: () => void;
935
+ }
936
+ declare function GuestSelectSourceScreen({ chains, selectedChainName, selectedTokenSymbol, onChainChange, onTokenChange, onConfirm, onBack, }: GuestSelectSourceScreenProps): react_jsx_runtime.JSX.Element;
937
+
815
938
  type FlowPhase = 'link' | 'deposit';
816
939
 
817
940
  declare function FlowPhaseProvider({ phase, children, }: {
@@ -823,4 +946,4 @@ declare const SWYPE_LOGO: string;
823
946
  /** @deprecated Use SWYPE_LOGO instead. Kept for backward compatibility. */
824
947
  declare const SWYPE_MASCOT: string;
825
948
 
826
- export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, SWYPE_LOGO, SWYPE_MASCOT, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypeLoadingScreen, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };
949
+ export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, GuestDepositScreen, type GuestQuote, GuestSelectSourceScreen, type GuestSourceChain, type GuestSourceToken, GuestWalletScreen, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OfferSetupScreen, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, type RelayDepositStep, SWYPE_LOGO, SWYPE_MASCOT, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupCompleteScreen, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypeLoadingScreen, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };