import type { APICommandResponse, APIDevice, APIDeviceStatus, DeviceListResponse, SceneListResponse, WebhookConfig, WebhookQueryResponse, WebhookSetupResponse } from './types/api.js'; /** * OpenAPI Client for SwitchBot API v1.1 */ export declare class OpenAPIClient { private token; private secret; private baseURL; private logger; constructor(token: string, secret: string, baseURL?: string, logLevel?: number); /** * Generate authentication headers for API requests */ private generateHeaders; /** * Make an API request */ private makeRequest; /** * Get all devices */ getDevices(): Promise; /** * Get device status */ getStatus(deviceId: string): Promise; /** * Send command to device */ sendCommand(deviceId: string, command: string, parameter?: any): Promise; /** * Get all scenes */ getScenes(): Promise; /** * Execute a scene */ executeScene(sceneId: string): Promise; /** * Setup webhook */ setupWebhook(config: WebhookConfig): Promise; /** * Query webhook configuration */ queryWebhook(urls?: string[]): Promise; /** * Update webhook */ updateWebhook(config: WebhookConfig): Promise; /** * Delete webhook */ deleteWebhook(url: string): Promise; /** * Get specific device information */ getDevice(deviceId: string): Promise; /** * Get devices by type */ getDevicesByType(deviceType: string): Promise; /** * Check if device has cloud service enabled */ isCloudServiceEnabled(deviceId: string): Promise; /** * Bot-specific commands */ botPress(deviceId: string): Promise; botTurnOn(deviceId: string): Promise; botTurnOff(deviceId: string): Promise; /** * Curtain-specific commands */ curtainOpen(deviceId: string, speed?: number): Promise; curtainClose(deviceId: string, speed?: number): Promise; curtainPause(deviceId: string): Promise; curtainSetPosition(deviceId: string, position: number, speed?: number): Promise; /** * Lock-specific commands */ lockLock(deviceId: string): Promise; lockUnlock(deviceId: string): Promise; /** * Plug-specific commands */ plugTurnOn(deviceId: string): Promise; plugTurnOff(deviceId: string): Promise; plugToggle(deviceId: string): Promise; /** * Bulb/Light-specific commands */ lightTurnOn(deviceId: string): Promise; lightTurnOff(deviceId: string): Promise; lightSetBrightness(deviceId: string, brightness: number): Promise; lightSetColor(deviceId: string, red: number, green: number, blue: number): Promise; lightSetColorTemperature(deviceId: string, temperature: number): Promise; /** * Humidifier-specific commands */ humidifierTurnOn(deviceId: string): Promise; humidifierTurnOff(deviceId: string): Promise; humidifierSetMode(deviceId: string, mode: 'auto' | 'manual'): Promise; /** * Air Purifier-specific commands */ airPurifierTurnOn(deviceId: string): Promise; airPurifierTurnOff(deviceId: string): Promise; airPurifierSetMode(deviceId: string, mode: 'auto' | 'manual' | 'sleep'): Promise; airPurifierSetFanSpeed(deviceId: string, speed: number): Promise; /** * Blind Tilt-specific commands */ blindTiltOpen(deviceId: string): Promise; blindTiltClose(deviceId: string): Promise; blindTiltSetPosition(deviceId: string, position: number): Promise; /** * Get client configuration */ getConfig(): { token: string; baseURL: string; }; /** * Update base URL */ setBaseURL(newBaseURL: string): void; } //# sourceMappingURL=api.d.ts.map