import { WalletInfo } from "./types"; import { AdapterNotDetectedWallet, AdapterWallet } from "../WalletCore"; /** * A function that will partition the provided wallets into two list — `defaultWallets` and `moreWallets`. * By default, the wallets will be partitioned by whether or not they are installed or loadable. * You can pass your own partition function if you wish to customize this behavior. */ export declare function partitionWallets(wallets: ReadonlyArray, partitionFunction?: (wallet: AdapterWallet | AdapterNotDetectedWallet) => boolean): { defaultWallets: AdapterWallet[]; moreWallets: AdapterNotDetectedWallet[]; }; /** Returns true if the wallet is installed or loadable. */ export declare function isInstalledOrLoadable(wallet: AdapterWallet | AdapterNotDetectedWallet): boolean; /** * Returns true if the user is on desktop and the provided wallet requires installation of a browser extension. * This can be used to decide whether to show a "Connect" button or "Install" link in the UI. */ export declare function isInstallRequired(wallet: AdapterWallet | AdapterNotDetectedWallet): boolean; /** Truncates the provided wallet address at the middle with an ellipsis. */ export declare function truncateAddress(address: string | undefined): string | undefined; /** * @deprecated Social sign-in disabled - always returns false */ export declare function isMovementConnectWallet(wallet: WalletInfo | AdapterWallet): boolean; /** * @deprecated Social sign-in disabled - always returns false */ export declare function isPetraWebWallet(wallet: WalletInfo | AdapterWallet): boolean; export interface WalletSortingOptions { /** An optional function for sorting wallets that are currently installed or loadable. */ sortAvailableWallets?: (a: AdapterWallet | AdapterNotDetectedWallet, b: AdapterWallet | AdapterNotDetectedWallet) => number; /** An optional function for sorting wallets that are NOT currently installed or loadable. */ sortInstallableWallets?: (a: AdapterWallet | AdapterNotDetectedWallet, b: AdapterWallet | AdapterNotDetectedWallet) => number; } /** * Partitions the `wallets` array into groups: * * `availableWallets` - Wallets that are currently installed or loadable by the client. * * `installableWallets` - Wallets that are NOT current installed or loadable and * require the client to install a browser extension first. * * Additionally, these wallet groups can be sorted by passing sort functions via the `options` argument. */ export declare function groupAndSortWallets(wallets: ReadonlyArray, options?: WalletSortingOptions): { /** @deprecated Social sign-in disabled - always returns empty array */ movementConnectWallets: AdapterWallet[]; /** @deprecated Social sign-in disabled - always returns empty array */ petraWebWallets: AdapterWallet[]; /** Wallets that are currently installed or loadable. */ availableWallets: AdapterWallet[]; /** Wallets that are NOT currently installed or loadable. */ installableWallets: AdapterNotDetectedWallet[]; }; //# sourceMappingURL=walletSelector.d.ts.map