import type { Wallet } from "../interfaces/wallet.js"; import type { AutoConnectProps } from "./types.js"; /** * Attempts to automatically connect to the last connected wallet. * It combines both specified wallets and installed wallet providers that aren't already specified. * * @example * * ```tsx * import { autoConnect } from "thirdweb/wallets"; * * const autoConnected = await autoConnect({ * client, * onConnect: (activeWallet, allConnectedWallets) => { * console.log("active wallet", activeWallet); * console.log("all connected wallets", allConnectedWallets); * }, * }); * ``` * * @param props - The auto-connect configuration properties * @param props.wallets - Array of wallet instances to consider for auto-connection * @returns {boolean} a promise resolving to true or false depending on whether the auto connect function connected to a wallet or not * @walletConnection */ export declare function autoConnect(props: AutoConnectProps & { wallets?: Wallet[]; /** * If true, the auto connect will be forced even if autoConnect has already been attempted successfully earlier. * * @default `false` */ force?: boolean; }): Promise; //# sourceMappingURL=autoConnect.d.ts.map