import { BigNumber } from "bignumber.js"; import type { Account, AccountLike, Operation } from "@ledgerhq/types-live"; export declare function findOperationInAccount({ operations, pendingOperations }: AccountLike, operationId: string): Operation | null | undefined; export declare function encodeOperationId(accountId: string, hash: string, type: string): string; export declare function decodeOperationId(id: string): { accountId: string; hash: string; type: string; }; export declare function encodeSubOperationId(accountId: string, hash: string, type: string, index: string | number): string; export declare function decodeSubOperationId(id: string): { accountId: string; hash: string; type: string; index: number; }; export declare function patchOperationWithHash(operation: Operation, hash: string): Operation; export declare function flattenOperationWithInternalsAndNfts(op: Operation): Operation[]; export declare const OPERATION_TYPE_IN_FAMILY: string[]; export declare const OPERATION_TYPE_OUT_FAMILY: string[]; export declare const OPERATION_TYPE_STAKE_FAMILY: string[]; export declare function getOperationAmountNumber(op: Operation): BigNumber; export declare function getOperationAmountNumberWithInternals(op: Operation): BigNumber; export declare const getOperationConfirmationNumber: (operation: Operation, account: Account) => number; export declare const getOperationConfirmationDisplayableNumber: (operation: Operation, account: Account) => string; export declare const isConfirmedOperation: (operation: Operation, account: Account, confirmationsNb: number) => boolean; type AddressPoisoningFilterOptions = { families?: string[] | null; }; export declare const isAddressPoisoningOperation: (operation: Operation, account: AccountLike, options?: AddressPoisoningFilterOptions) => boolean; /** * @param account The account of the transaction to edit * @param nonce The nouce of the transaction to edit * @returns true if the nonce corresponds to the oldest pending operation */ export declare const isOldestPendingOperation: (account: Account, nonce: BigNumber) => boolean; /** * @param account The account of the transaction to edit * @param date The date of the transaction to edit * @returns true if the date corresponds to the oldest pending operation */ export declare const isOldestBitcoinPendingOperation: (account: Account, date: Date) => boolean; export {}; //# sourceMappingURL=operation.d.ts.map