import type { Inbound, InboundOptions } from "./lib/types/inbound"; import type { Client, ClientOptions } from "./lib/types"; export declare class Api { readonly host: string; readonly port: number; readonly protocol: string; readonly path: string; readonly username: string; private readonly _password; private readonly _logger; private readonly _cache; private readonly _axios; private readonly _mutex; private _cookie; constructor(uri: string); set debug(enable: boolean); set stdTTL(ttl: number); flushCache(): void; private login; private get; private post; private cacheInbound; checkHealth(): Promise; getInbounds(): Promise; getInbound(id: number): Promise; addInbound(options: InboundOptions): Promise; updateInbound(id: number, options: Partial): Promise; resetInboundsStat(): Promise; resetInboundStat(id: number): Promise; deleteInbound(id: number): Promise; getClient(clientId: string): Promise; getClientOptions(clientId: string): Promise; addClient(inboundId: number, options: ClientOptions): Promise; updateClient(clientId: string, options: Partial): Promise; deleteClient(clientId: string): Promise; getClientIps(clientId: string): Promise; resetClientIps(clientId: string): Promise; resetClientStat(clientId: string): Promise; deleteDepletedClients(): Promise; deleteInboundDepletedClients(inboundId: number): Promise; getOnlineClients(): Promise; sendBackup(): Promise; }