export = ManagerCloud; /** * @hideconstructor * @classdesc * You can access this manager through the {@link Homey} instance as `this.homey.cloud` */ declare class ManagerCloud extends Manager { static ID: string; /** * Generate a OAuth2 Callback * @param {string} apiUrl * @returns {Promise} */ createOAuth2Callback(apiUrl: string): Promise; /** * @param {string} id Webhook ID * @param {string} secret Webhook Secret * @param {object} data Webhook Data * @returns {Promise} */ createWebhook(id: string, secret: string, data: object): Promise; /** * Unregister a webhook * @param {CloudWebhook} webhook * @returns {Promise} */ unregisterWebhook(webhook: CloudWebhook): Promise; /** * Get Homey's local address & port * @returns {Promise} A promise that resolves to the local address */ getLocalAddress(): Promise; /** * Get Homey's Cloud ID * @returns {Promise} A promise that resolves to the cloud id */ getHomeyId(): Promise; } import Manager = require("../lib/Manager.js"); import CloudOAuth2Callback = require("../lib/CloudOAuth2Callback.js"); import CloudWebhook = require("../lib/CloudWebhook.js");