UNPKG

easy-currencies

Version:

A tool for easy conversion of currencies.

24 lines (23 loc) 694 B
import { AxiosInstance } from "axios"; import { Provider } from "./providers"; /** * Query interface, used to interact with the requester. * * @export * @interface Query */ export interface Query { FROM: string; TO: string; multiple: boolean; } /** * The fetchRates function, used for fetching currency conversion rates. * * @export * @param {AxiosInstance} client - client to be used for the request * @param {Provider} provider - provider from which the quotes will be fetched * @param {Query} query - the query * @returns {Promise<any>} - a result promise */ export declare function fetchRates(client: AxiosInstance, provider: Provider, query: Query): Promise<any>;