import type { Agent, AgentOptions } from "node:https"; import { AxiosHeaders } from "axios"; import type { AxiosRequestConfig, AxiosResponse, AxiosInstance } from "axios"; import type { CookieAgent, CookieAgentOptions } from "http-cookie-agent/http"; import type { CookieJar } from "tough-cookie"; import * as selfsigned from "selfsigned"; export type PromiseResponse = Promise>; export type Response = AxiosResponse; export interface ClientPlatfrom { platformType: string; platformOS: string; platformOSVersion: string; platformChipset: string; } export interface RequestConfig { build?: string; version?: string; platform?: ClientPlatfrom; axiosConfig?: AxiosRequestConfig; agentConfig?: AgentOptions & CookieAgentOptions; certificate?: selfsigned.GenerateResult; cookie: CookieJar; } export declare class AuthRequest { readonly certificate: selfsigned.GenerateResult; readonly headers: AxiosHeaders; readonly agent: CookieAgent; readonly defaultAxiosConfig: AxiosRequestConfig; constructor(config: RequestConfig); private get axiosConfig(); static newUserAgent(build: string, app?: string, os?: string): string; create(): AxiosInstance; get(url: string): Promise>; post(url: string, data?: any): Promise>; put(url: string, data?: any): Promise>; delete(url: string): Promise>; }