import { Address } from './address'; import Input from './models/Input'; import Output from './models/Output'; export interface finalizePSBTResponse { psbt: string; hex?: string; complete: boolean; } export interface WalletProvider { /** * Get addresses/accounts of the user. * @param {number} [startingIndex] - Index to start * @param {number} [numAddresses] - Number of addresses to retrieve * @param {boolean} [change] - True for change addresses * @return {Promise
} Resolves with a list * of addresses. * Rejects with InvalidProviderResponseError if provider's response is invalid. */ getAddresses(startingIndex?: number, numAddresses?: number, change?: boolean): Promise; /** * Get used addresses/accounts of the user. * @param {number} [numAddressPerCall] - Number of addresses to retrieve per call * @return {Promise} Resolves with a list * of addresses. * Rejects with InvalidProviderResponseError if provider's response is invalid. */ getUsedAddresses(numAddressPerCall?: number): Promise; /** * findAddress is an optimized version of upstream CAL's findAddress. * * It searches through both change and non-change addresses (if change arg is not provided) each iteration. * * This is in contrast to the original findAddress function which searches * through all non-change addresses before moving on to change addresses. * * @param addresses * @returns {Promise} */ findAddress(addresses: string[]): Promise; /** * Get unused address/account of the user. * @param {boolean} [change] - True for change addresses * @param {number} [numAddressPerCall] - Number of addresses to retrieve per call * @return {Promise} Resolves with a address * object. * Rejects with InvalidProviderResponseError if provider's response is invalid. */ getUnusedAddress(change?: boolean, numAddressPerCall?: number): Promise; /** * Sign a message. * @param {!string} message - Message to be signed. * @param {!string} from - The address from which the message is signed. * @return {Promise