UNPKG

philtv-js

Version:

A simple library to pair and interact with Philips TV

42 lines (39 loc) 1.12 kB
/** * Parameters required to initialize the `PhilTVApiBase` class. * * This object includes the API connection details and optional configuration settings. */ type PhilTVApiParams = { /** * The URL of the Philips TV API to connect to. * Include the protocol, IP address, port number and API version. * @example https://192.168.0.22:1926/6 */ apiUrl: string; /** * The username for authentication with the API. */ user: string; /** * The password for authentication with the API. */ password: string; }; type FlatNode = { node_id: number; type: string; string_id?: string; context?: string; data?: unknown; }; declare function getDeviceObject(deviceId: string): { app_id: string; id: string; device_name: string; device_os: string; app_name: string; type: string; }; declare function getFlattenNodes(allInput: any): FlatNode[]; declare function checkUrl(url: string): Promise<boolean>; export { type FlatNode as F, type PhilTVApiParams as P, getFlattenNodes as a, checkUrl as c, getDeviceObject as g };