export = ManagerInsights; /** * @hideconstructor * @classdesc * You can access this manager through the {@link Homey} instance as `this.homey.insights` */ declare class ManagerInsights extends Manager { static ID: string; /** * Get all logs belonging to this app. * @returns {Promise} An array of {@link InsightsLog} instances */ getLogs(): Promise; /** * Get a specific log belonging to this app. * @param {string} id - ID of the log (must be lowercase, alphanumeric) * @returns {Promise} */ getLog(id: string): Promise; /** * Create a log. * @param {string} id - ID of the log (must be lowercase, alphanumeric) * @param {object} options * @param {string} options.title - Log's title * @param {string} options.type - Value type, can be either number or boolean * @param {string} [options.units] - Units of the values, e.g. °C * @param {number} [options.decimals] - Number of decimals visible * @returns {Promise} */ createLog(id: string, options: { title: string; type: string; units?: string | undefined; decimals?: number | undefined; }): Promise; /** * Delete a log. * @param {InsightsLog} log * @returns {Promise} */ deleteLog(log: InsightsLog): Promise; } import Manager = require("../lib/Manager.js"); import InsightsLog = require("../lib/InsightsLog.js");