import { AxiosRequestConfig as AxiosOptions } from 'axios'; import { Method, Body } from './request'; /** * JSON API request parameters. */ export interface Request { url: string; method: Method; body: Body; options: Options; retryCount: number; id?: string | 0; } /** * JSONP request options. * @see {@link https://github.com/webmodules/jsonp|webmodules/jsonp} for further information. */ export interface JSONPOptions { param?: string; prefix?: string; name?: string; timeout?: number; } /** * API request options. */ export declare type Options = AxiosOptions | JSONPOptions; /** * Send a request to Findify JSON API. * @param req Request parameters. */ export declare const send: (req: Request, getLatestRequestID: any) => Promise;