import BrowserConnection from './connection/Browser.js';
import BrowserWindowMessageConnection from './connection/BrowserWindowMessage.js';
import { WalletInfo } from './rpc/types.js';
interface Wallet {
    info: WalletInfo;
    getConnection: () => BrowserWindowMessageConnection;
}
interface Wallets {
    [key: string]: Wallet;
}
/**
 * A function to detect available wallets
 * @category aepp wallet communication
 * @param connection - connection to use to detect wallets
 * @param onDetected - call-back function which trigger on new wallet
 * @returns a function to stop scanning
 */
declare const _default: (connection: BrowserConnection, onDetected: ({ wallets, newWallet }: {
    wallets: Wallets;
    newWallet: Wallet;
}) => void) => (() => void);
export default _default;
