import type { Account } from "@ledgerhq/types-live"; import type { CryptoCurrency } from "@ledgerhq/ledger-wallet-framework/types"; import type { Account as WalletAccount } from "@ledgerhq/wallet-btc/account"; import type { BitcoinCoinConfig, BitcoinContext } from "./config"; import { type ExplorerConfig } from "./walletBtcCurrency"; /** * CryptoCurrency-friendly adapter over wallet-btc's blockchainBaseURL. * * Kept here so existing consumers (e.g. ledger-live-common) can keep importing * `@ledgerhq/coin-bitcoin/explorer` with a CryptoCurrency, while wallet-btc stays * dependency-inverted (it only knows the injected WalletBtcCurrency). */ export declare const blockchainBaseURL: (currency: CryptoCurrency, config: ExplorerConfig) => string; /** * Points a wallet-btc account at the explorer the coin config names. * * A deserialized account carries no explorer endpoint (deserialization is synchronous and the coin * config is not), so every path that reaches the explorer binds it here first, from the config it * just resolved. A remote change of `explorer.url`, `explorer.batchSize` or `explorerId` therefore * applies on the next call. */ export declare function bindExplorer(walletAccount: WalletAccount, currency: CryptoCurrency, config: ExplorerConfig): WalletAccount; /** * Resolves the coin config of `account` and binds its wallet-btc account (when it has one) to the * explorer that config names, so the code reached from a bridge method finds a usable explorer. */ export declare function resolveAccountConfig(context: BitcoinContext, account: Account): Promise; //# sourceMappingURL=explorer.d.ts.map