import { PaginationOrderDir } from '../../models/utils/types'; export declare enum RequestMethod { GET = "GET", POST = "POST", PUT = "PUT", DELETE = "DELETE" } interface RequestFile { path: string; } interface RequestQuery { cursor?: string; fields?: string[] | string; token?: string; nounce?: string; query?: string; type?: string; as_tree?: number; limit?: number; order_dir?: PaginationOrderDir; order_by?: string; } export interface Request { method: RequestMethod; path: string; query: RequestQuery; body: any; bodyJson_: any; bodyJson: any; files: RequestFile[]; params: any[]; action?: any; } export default class Api { private token_; private knownNounces_; private actionApi_; private resourceNameToRoute_; constructor(token?: string, actionApi?: any); get token(): any; private parsePath; route(method: RequestMethod, path: string, query?: RequestQuery, body?: any, files?: RequestFile[]): Promise; private checkToken_; private execServiceActionFromRequest_; private action_services; } export {};