import { IHttpResult, IPaginationResponse, TPlatform } from '../types'; import { HttpService } from './http.service'; export declare type THttpMethod = 'get' | 'post' | 'put' | 'delete'; export interface IPaginationParams { limit?: number; page?: string | number; [key: string]: any; } export interface IAPIProps { resourcePath: string; method?: THttpMethod; data?: any; dataType?: 'json' | 'form-data'; pagination?: IPaginationParams; headers?: any; } export declare class APIService extends HttpService { platform: TPlatform; constructor(platform?: TPlatform); request({ resourcePath, method, data, dataType, pagination, headers, }: IAPIProps): Promise>; get({ resourcePath, pagination, headers }: IAPIProps): Promise>>; getOne({ resourcePath, headers }: IAPIProps): Promise>; create({ resourcePath, data, headers }: IAPIProps): Promise>; update({ resourcePath, data, headers }: IAPIProps): Promise>; delete({ resourcePath, headers }: IAPIProps): Promise>; }