import { type CaipNetworkId, type AppKitNetwork, type Provider, type ChainNamespace, type AppKitConnectOptions, type AccountType, type AppKitOpenOptions } from '@reown/appkit-common-react-native'; import { type AppKitConfig } from './types'; export declare class AppKit { private projectId; private adapters; private networks; private namespaces; private config; private extraConnectors; private walletConnectConnector?; private balanceIntervalId?; constructor(config: AppKitConfig); /** * Handles the full connection flow for a given connector type. * @param type - The type of connector to use. * @param options - Optional connection options. */ connect(options?: AppKitConnectOptions): Promise; private processConnection; /** * Disconnects from a given namespace. * @param namespace - The namespace to disconnect from. * @param isInternal - Whether the disconnect is internal (i.e. from the AppKit) or external (i.e. from wallet side). */ disconnect(namespace?: ChainNamespace, isInternal?: boolean): Promise; /** * Returns the provider for a given namespace. * @param namespace - The namespace to get the provider for. * @returns The provider for the given namespace, or null if not available or not yet initialized. */ getProvider(namespace?: string): T | null; getNetworks(): AppKitNetwork[]; /** * Switches to a different network. * @param network - Either an AppKitNetwork object or a CAIP network ID string (e.g., 'eip155:1') * @throws {Error} When the network is not found in configured networks * @throws {Error} When no active adapter is available (only when connected) * @returns Promise that resolves when the network switch is complete */ switchNetwork(network: AppKitNetwork | CaipNetworkId): Promise; open(options?: AppKitOpenOptions): void; close(): Promise; back(): void | Promise; switchAccountType(namespace: ChainNamespace, type: AccountType, network: AppKitNetwork): Promise; private createConnector; private createWalletConnectConnector; /** * Initializes connectors based on stored connection data. * This attempts to restore previous sessions. */ private initConnectors; private setupAdaptersAndSubscribe; private getAdapterByNamespace; private syncAccounts; private syncNativeBalance; private syncIdentity; private refreshBalance; private startBalancePolling; private stopBalancePolling; private watchBalance; private setConnection; private subscribeToAdapterEvents; private initControllers; private initActiveNamespace; private initRecentWallets; private setExcludedWallets; private setCustomWallets; private initStorageAndValues; private navigate; } /** * Creates or returns the existing AppKit singleton instance. * * @warning This function implements a singleton pattern. If an instance already exists, * it will be returned and the provided config parameter will be IGNORED. If you need to * change configuration, you must reload your application or clear the singleton manually. * * @param config - AppKit configuration options * @returns The AppKit singleton instance * @throws Error if configuration validation fails */ export declare function createAppKit(config: AppKitConfig): AppKit; //# sourceMappingURL=AppKit.d.ts.map