import { AxiosRequestConfig, AxiosResponse, Method } from 'axios'; import { API } from '../API'; import { QueryParams } from './models/HTTP'; import { AbortController } from 'node-abort-controller'; export declare class APIEntity { root: API; protected stack: Array; protected requestConfig: AxiosRequestConfig; protected ALLOWED_HTTP_METHODS: Array; protected abortController: AbortController; constructor(parent: APIEntity | API); abortRequest(): void; push(...items: Array): this; shift(): this; restack(...items: Array): this; get first(): string | number; get last(): string | number; set last(val: string | number); toUrl(absolute?: boolean): string; setRequestConfig(requestConfig: AxiosRequestConfig): this; private normalizeHeaders; removeRequestConfig(key: keyof AxiosRequestConfig): this; headers(headers: Record): this; method(name: Method): this; get(): this; post(): this; delete(): this; params(params: Pick): this; getParams(): Partial; removeParam(key: keyof QUERY_PARAMS): this; data(data: DATA): this; jsonData(data: DATA): this; formData(data: DATA): this; send(): Promise>; protected paramsSerializer(params: DATA | QUERY_PARAMS): string; } export default APIEntity;