import type { ListOperationsOptions, Operation, Page } from "@ledgerhq/coin-module-framework/api/types"; import type { BitcoinContext } from "../config"; import type { ExplorerTx } from "../network/types"; /** * The operation a confirmed transaction makes on `address`, or `undefined` when it does not move * its funds. * * Values follow the framework convention: an outgoing operation's `value` excludes the fees, which * the consumer adds back from `tx.fees`. `tx.fees` is the transaction's whole fee, as the bridge * reports it, so `value + tx.fees` is what left the address, as in the bridge. * - `OUT`: the address sent funds to others; `value` = what left it minus the fee. * - `FEES`: what left the address does not exceed the fee (e.g. funds sent back to itself); * `value` = 0. When it is less than the whole fee (a co-funded transaction), `tx.fees` is what * left the address, so that the balance impact stays exact. * - `IN`: the address received more than it spent; `value` = the net amount received. */ export declare function toOperation(tx: ExplorerTx, address: string): Operation | undefined; /** * One page of the confirmed operations of a single address, newest first unless `order` is `asc`. * The explorer's pagination token is returned as `next` and must be passed back as `cursor`; * `minHeight` excludes older blocks. Unconfirmed transactions are not listed. */ export declare function listOperations(context: BitcoinContext, currencyId: string, address: string, options: ListOperationsOptions): Promise>; //# sourceMappingURL=listOperations.d.ts.map