import { StellarWalletsKit } from '@creit.tech/stellar-wallets-kit/sdk'; import { ISupportedWallet, Networks, ModuleInterface, StellarWalletsKitInitParams } from '@creit.tech/stellar-wallets-kit/types'; export { Networks as WalletNetwork } from '@creit.tech/stellar-wallets-kit/types'; import { C as CaatingaWalletAdapter } from './types-D4XEyX4J.cjs'; import '@caatinga/core/browser'; /** * Optional WalletConnect metadata. When provided, a WalletConnect module is * registered alongside the auto-detected wallets so it shows up in the modal. */ interface StellarWalletsKitMetadata { name: string; description: string; url: string; icons: string[]; projectId: string; } interface StellarWalletsKitAdapterOptions { network?: Networks; /** Wallet pre-selected before the user opens the modal. Defaults to Freighter. */ selectedWalletId?: string; /** Override the registered modules. Defaults to every auto-detectable wallet. */ modules?: ModuleInterface[]; walletConnectMetadata?: StellarWalletsKitMetadata; /** Extra SWK init options (theme, authModal flags, etc.). */ initParams?: Omit; } interface StellarWalletsKitOpenModalOptions { modalTitle?: string; notAvailableText?: string; onClosed?: (error: Error) => void; } interface StellarWalletsKitAdapter extends CaatingaWalletAdapter { /** SWK 2.x uses static methods on this class (no per-app instance). */ kit: typeof StellarWalletsKit; /** * Opens the wallet-selection modal (lists only installed/available wallets), * sets the chosen wallet as active, and resolves with the connected address. * Rejects if the user closes the modal without selecting a wallet. */ openModal(options?: StellarWalletsKitOpenModalOptions): Promise; setWallet(walletId: string): void; /** Id of the wallet currently selected in the kit, or undefined before any selection. */ getWalletId(): string | undefined; getSupportedWallets(): Promise; disconnect(): Promise; } declare function createStellarWalletsKitAdapter(options?: StellarWalletsKitAdapterOptions): StellarWalletsKitAdapter; export { type StellarWalletsKitAdapter, type StellarWalletsKitAdapterOptions, type StellarWalletsKitMetadata, type StellarWalletsKitOpenModalOptions, createStellarWalletsKitAdapter };