import { AxiosRequestConfig } from "axios"; import { BaseModuleSynologyApi } from "./modules/index.js"; import { QuickConnectServerType } from "./types/index.js"; interface Agent { http?: { host: string; port: number; }; https?: { host: string; port: number; }; } export interface SynologyApiOptions { server: string; username: string; password: string; quickConnectServerType?: QuickConnectServerType; agent?: Agent; lanPriority?: boolean; } export interface SynologyApiInfoData { maxVersion: number; minVersion: number; path: string; requestFormat?: string; } export interface SynologyApiAuthInfo { sid: string; did: number; is_portal_port: boolean; synotoken: string; } export declare class SynologyApi extends BaseModuleSynologyApi { server: string; username: string; password: string; agent?: Agent; baseUrl: string; isConnecting: boolean; quickConnectServerType?: QuickConnectServerType; lanPriority?: boolean; private authInfo; private apiInfo; constructor(options: SynologyApiOptions); connect(): Promise; disconnect(): Promise; private _getApiInfo; protected getApiInfoByName(apiName: string): SynologyApiInfoData; hasApi(apiName: string): any; getApiInfo(): Record; protected genRequestOptions(apiName: string, options: { method?: "get" | "post"; params?: Record; data?: Record; headers?: Record; responseType?: AxiosRequestConfig["responseType"]; }): Promise; protected run(apiName: string, options: { method?: "get" | "post"; params?: Record; data?: Record; headers?: Record; responseType?: AxiosRequestConfig["responseType"]; }): Promise; } export {};