UNPKG

@ledgerhq/live-common

Version:
13 lines 957 B
import { Observable } from "rxjs"; import type { ExchangeSwap, ExchangeRate, GetMultipleStatus, GetProviders, PostSwapAccepted, PostSwapCancelled, SwapRequestEvent } from "./types"; import type { Transaction } from "../../generated/types"; import type { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets"; export declare const mockGetExchangeRates: (exchange: ExchangeSwap, transaction: Transaction, currencyTo?: TokenCurrency | CryptoCurrency | undefined | null) => Promise<(ExchangeRate & { expirationDate?: Date; })[]>; export declare const mockInitSwap: (exchange: ExchangeSwap, exchangeRate: ExchangeRate, transaction: Transaction) => Observable<SwapRequestEvent>; export declare const mockGetProviders: GetProviders; export declare const mockGetStatus: GetMultipleStatus; export declare const mockPostSwapAccepted: PostSwapAccepted; export declare const mockPostSwapCancelled: PostSwapCancelled; //# sourceMappingURL=mock.d.ts.map