homebridge-gsh
Version:
Google Smart Home
11 lines (10 loc) • 556 B
TypeScript
import { ServiceType } from '@homebridge/hap-client';
import type { SmartHomeV1ExecuteRequestCommands, SmartHomeV1ExecuteResponseCommands } from 'actions-on-google';
export declare abstract class ghToHap {
protected createSyncData(service: ServiceType, typeTraits: any): any;
}
export interface ghToHap_t {
sync: (service: ServiceType) => Record<string, any>;
query: (service: ServiceType) => Record<string, any>;
execute: (service: ServiceType, command: SmartHomeV1ExecuteRequestCommands) => Promise<SmartHomeV1ExecuteResponseCommands>;
}