UNPKG

@squarecloud/api

Version:
16 lines (13 loc) 567 B
import { APIVersion } from '@squarecloud/api-types/v2'; import { A as APIEndpoint, a as APIRequestArgs, b as APIResponse } from '../api-DbJomjym.cjs'; declare class APIService { protected readonly apiKey: string; readonly baseUrl = "https://api.squarecloud.app"; readonly version: APIVersion<1 | 2>; readonly sdkVersion: string; readonly userId: string; constructor(apiKey: string); request<T extends APIEndpoint>(...[path, options]: APIRequestArgs<T>): Promise<APIResponse<T>>; private parseRequestOptions; } export { APIService };