import type { CommandResult } from '../types/index.js'; /** * OpenAPI `setMode` parameter for air purifiers: `{"mode": mode_int, "fanGear": fan_level_int}`, * where mode is 1 (normal/fan), 2 (auto), 3 (sleep) or 4 (pet), and fanGear (1-3) applies only * to mode 1. OpenAPI has no separate fan speed or preset command; both are `setMode`. */ export interface AirPurifierAPIMode { mode: 1 | 2 | 3 | 4; fanGear?: number; } /** `setMode('auto' | 'manual' | 'sleep')` */ export declare function airPurifierModeParameter(mode: 'auto' | 'manual' | 'sleep'): AirPurifierAPIMode; /** `setFanSpeed(1-4)`; OpenAPI fan gears go up to 3 */ export declare function airPurifierFanParameter(speed: number): AirPurifierAPIMode; /** `setPresetMode(level_1 | level_2 | level_3 | auto | sleep | pet)` */ export declare function airPurifierPresetParameter(preset: 'level_1' | 'level_2' | 'level_3' | 'auto' | 'sleep' | 'pet'): AirPurifierAPIMode; type SendOnce = (command: readonly number[], options: { retry?: boolean; validateResponse?: boolean; }) => Promise; /** * Reset an air purifier's filter usage over BLE and confirm it, as pySwitchbot 3.1.0 * `reset_filter_usage` does: send the reset once (never retried), require status 0x01, then read * the usage back and succeed only if it is 0 hours. Throws CommandFailedError otherwise. * * OpenAPI has no filter reset command. On an encrypted device the transport decrypts the reply * (setKey with key id and key). An encryption key without a key id uses the legacy scheme, whose * replies cannot be read, so the reset is refused before anything is sent. */ export declare function resetAirPurifierFilterUsage(device: { encrypted: boolean; hasBLE: boolean; send: SendOnce; }): Promise; export {}; //# sourceMappingURL=air-purifier-api.d.ts.map