UNPKG

@switchbot/homebridge-switchbot

Version:

The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.

27 lines (23 loc) 806 B
// Global homebridge API type declarations declare global { interface HomebridgeToastApi { success?: (message: string, title?: string) => void error?: (message: string, title?: string) => void warning?: (message: string, title?: string) => void info?: (message: string, title?: string) => void } interface HomebridgePluginUiAPI { request: (endpoint: string, params?: any) => Promise<any> getPluginConfig?: () => Promise<any[]> updatePluginConfig?: (config: any[]) => Promise<void> savePluginConfig?: () => Promise<void> closeSettings?: () => void showSpinner?: () => void hideSpinner?: () => void disableSaveButton?: () => void enableSaveButton?: () => void toast?: HomebridgeToastApi } let homebridge: HomebridgePluginUiAPI } export {}