import { CurrencyInfo, AccountStatus, ExchangeRates, ConversionResult, HistoricalRates, ConversionResults } from "./types"; /** * FreeCurrency Converter - A TypeScript client for FreeCurrencyAPI.com * * @example * ``` * import { FreeCurrencyConverter } from 'real-time-currency-converter'; * * const converter = new FreeCurrencyConverter('your-api-key'); * const result = await converter.convert(100, 'USD', 'EUR'); * console.log(result.convertedAmount); * ``` */ declare class FreeCurrencyConverter { private apiKey; private readonly baseURL; constructor(apiKey?: string | null); init(apiKey: string): FreeCurrencyConverter; private validateApiKey; private makeRequest; getStatus(): Promise; getCurrencies(currencies?: string | string[]): Promise>; getLatestRates(baseCurrency?: string, currencies?: string | string[]): Promise; convert(amount: number, fromCurrency: string, toCurrency: string, baseCurrency?: string): Promise; getHistoricalRates(date: string, baseCurrency?: string, currencies?: string | string[]): Promise; convertMultiple(amount: number, fromCurrency: string, toCurrencies: string[], baseCurrency?: string): Promise; isCurrencySupported(currencyCode: string): Promise; getCurrencyInfo(currencyCode: string): Promise; } /** * ExchangeRate Converter - A TypeScript client for ExchangeRate-API.com * * @example * ``` * import { ExchangeRateConverter } from 'real-time-currency-converter'; * * const converter = new ExchangeRateConverter('your-api-key'); * const result = await converter.convert(100, 'USD', 'EUR'); * console.log(result.convertedAmount); * ``` */ declare class ExchangeRateConverter { private apiKey; private readonly baseURL; constructor(apiKey?: string | null); init(apiKey: string): ExchangeRateConverter; private validateApiKey; private makeRequest; getSupportedCurrencies(): Promise; getLatestRates(baseCurrency?: string, currencies?: string[]): Promise; convert(amount: number, fromCurrency: string, toCurrency: string): Promise; convertMultiple(amount: number, fromCurrency: string, toCurrencies: string[]): Promise; getHistoricalRates(date: string, baseCurrency?: string, currencies?: string[]): Promise; isCurrencySupported(currencyCode: string): Promise; } export default FreeCurrencyConverter; export { FreeCurrencyConverter, ExchangeRateConverter }; export * from "./types"; //# sourceMappingURL=index.d.ts.map