@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
14 lines • 538 B
TypeScript
import { ExchangeRate } from "../../types";
import { Unit } from "@ledgerhq/live-app-sdk";
type Props = {
providers: Array<string>;
currencyFrom?: string;
toCurrencyId?: string;
fromCurrencyAmount: string;
unitTo: Unit;
unitFrom: Unit;
};
export declare const throwRateError: (response: ExchangeRate[]) => never;
export declare function fetchRates({ providers, currencyFrom, toCurrencyId, unitTo, unitFrom, fromCurrencyAmount, }: Props): Promise<ExchangeRate[]>;
export {};
//# sourceMappingURL=fetchRates.d.ts.map