import { IAirGapAddress } from '@airgap/coinlib-core/interfaces/IAirGapAddress'; /** * Resolves the two supported call shapes of `BitcoinAddress.from`/`BitcoinSegwitAddress.from`: * * - pre-migration: `(node, visibilityDerivationIndex?, addressDerivationIndex?)`, where `node` is * a bitgo-utxo-lib-style HDNode exposing `getAddress()`. Kept because both classes are exported * from `@airgap/bitcoin/v0` and external callers use this positional shape. * - current: `(node, lib, network, visibilityDerivationIndex?, addressDerivationIndex?)`, where * `node` is a bip32 node and `lib.payments` decides how the address is hashed. */ export declare function resolveFromArgs(node: any, libOrVisibilityIndex?: { payments: any; } | number, networkOrAddressIndex?: any, maybeVisibilityIndex?: number, maybeAddressIndex?: number): { node: any; lib?: { payments: any; }; network?: any; visibilityDerivationIndex?: number; addressDerivationIndex?: number; }; export declare class BitcoinAddress implements IAirGapAddress { protected readonly value: string; readonly visibilityDerivationIndex?: number | undefined; readonly addressDerivationIndex?: number | undefined; constructor(value: string, visibilityDerivationIndex?: number | undefined, addressDerivationIndex?: number | undefined); /** * `lib` is the injected bitcoinjs-lib-compatible library. Its `payments.p2pkh` decides how the * address is hashed — SHA256d for Bitcoin, groestl for Groestlcoin — which is why Groestlcoin * injects `groestlcoinjs-lib` rather than passing a parameter. * * The pre-migration `(node, visibilityDerivationIndex?, addressDerivationIndex?)` shape is still * accepted for external callers holding a bitgo-style node with `getAddress()`. */ static from(node: any, visibilityDerivationIndex?: number, addressDerivationIndex?: number): BitcoinAddress; static from(node: any, lib: { payments: any; }, network: any, visibilityDerivationIndex?: number, addressDerivationIndex?: number): BitcoinAddress; asString(): string; }