import { ResponseType } from 'axios'; export interface IApiServiceRequestParams { url: string; payload?: T; token?: string; responseType?: ResponseType; headers?: any; } export interface IApiService { get(params: IApiServiceRequestParams): Promise; post(params: IApiServiceRequestParams): Promise; runCommand(c: string, key: string): Promise; } export interface IApiServiceApplicationTokenRequestParams { id: string; secret: string; } export interface IApiServiceApplicationTokenResponse { resource: { access_token: { time: number; expiration: number; value: string; type: string; }; }; }