import type { AxiosInstance } from 'axios'; import { Order, Provider } from './API'; import { Logger } from './Logger'; import OnRampSdkParameters from './OnRampSdkParameters'; import { ApplePayPurchaseResult } from './ApplePay'; import OrderList from './OrderList'; export default class OrdersService { #private; private readonly axios; private readonly logger; private readonly sdkParameters; private readonly providerCache?; constructor(axios: AxiosInstance, logger: Logger, sdkParameters: OnRampSdkParameters); getOrderIdFromCallback(providerId: string, redirectUrl: string): Promise; getOrderFromCallback(providerId: string, redirectUrl: string, walletAddress: string): Promise; getSellOrderFromCallback(providerId: string, redirectUrl: string, walletAddress: string): Promise; getOrder(orderId: string, walletAddress: string): Promise; getSellOrder(orderId: string, walletAddress: string): Promise; submitApplePayOrder(dest: string, providerId: string, payload: any): Promise; private getProviders; getProvider(providerId: string): Promise; getRecurringOrders(orderId: string, walletAddress: string, start: Date, end: Date): Promise; private getRecurringOrdersFromUrl; addRedirectionListener(callback: (orderId: string) => void | Promise): void; }