export = Signal; /** * @typedef {import('../manager/rf')} ManagerRF */ /** * The Signal class represents an Signal as defined in the app's app.json. */ declare class Signal extends SimpleClass { id: string; frequency: string; /** * Start receiving messages for this signal. * This is a shorthand method for {@link ManagerRF#enableSignalRX}. * @returns {Promise} */ enableRX(): Promise; /** * Stop receiving messages for this signal. * This is a shorthand method for {@link ManagerRF#disableSignalRX}. * @returns {Promise} */ disableRX(): Promise; /** * Transmit a frame * @param {number[]} frame - An array of word indexes * @param {object} [opts] - Transmission options * @param {object} [opts.repetitions] - A custom amount of repetitions * @returns {Promise} */ tx(frame: number[], opts?: { repetitions?: object | undefined; } | undefined): Promise; /** * Transmit a command * @param {string} commandId - The ID of the command, as specified in `/app.json` * @param {object} [opts] - Transmission options * @param {object} [opts.repetitions] - A custom amount of repetitions * @returns {Promise} */ cmd(commandId: string, opts?: { repetitions?: object | undefined; } | undefined): Promise; } declare namespace Signal { export { ManagerRF }; } import SimpleClass = require("./SimpleClass.js"); type ManagerRF = import('../manager/rf');