/// import { AddressValidation, SignedTx, TypedMessage, UnsignedTx } from '../../../types/provider'; import { Signer, Verifier } from '../../../types/secret'; import { BaseProvider } from '../../abc'; import { BlockBook } from './blockbook'; import AddressEncodings from './sdk/addressEncodings'; import { Network } from './sdk/networks'; declare type GetAccountParams = { type: 'simple'; xpub: string; } | { type: 'details'; xpub: string; } | { type: 'history'; xpub: string; to?: number; }; declare class Provider extends BaseProvider { private _versionBytesToEncodings?; get network(): Network; get blockbook(): Promise; get versionBytesToEncodings(): { public: Record>; private: Record>; }; private isValidExtendedKey; isValidXpub(xpub: string | Buffer): boolean; isValidXprv(xprv: string | Buffer): boolean; xprvToXpub(xprv: string): string; getAccount(params: GetAccountParams, addressEncoding?: AddressEncodings): Promise; xpubToAddresses(xpub: string, relativePaths: Array, addressEncoding?: AddressEncodings): Record; pubkeyToAddress(verifier: Verifier, encoding: AddressEncodings): Promise; verifyAddress(address: string): Promise; buildUnsignedTx(unsignedTx: UnsignedTx): Promise; signTransaction(unsignedTx: UnsignedTx, signers: { [p: string]: Signer; }): Promise; signMessage({ message }: TypedMessage, signer: Signer, address?: string): Promise; verifyMessage(address: string, { message }: TypedMessage, signature: string): Promise; private pubkeyToPayment; private parseAddressEncodings; private packTransaction; private collectInfoForSoftwareSign; collectTxs(txids: string[]): Promise>; get hardwareCoinName(): string; hardwareGetXpubs(paths: string[], showOnDevice: boolean): Promise<{ path: string; xpub: string; }[]>; hardwareGetAddress(path: string, showOnDevice: boolean, addressToVerify?: string): Promise; hardwareSignTransaction(unsignedTx: UnsignedTx, signers: Record): Promise; hardwareSignMessage({ message }: TypedMessage, signer: string): Promise; hardwareVerifyMessage(address: string, { message }: TypedMessage, signature: string): Promise; } export { Provider };