import { Device } from "./device.js"; import { IDeviceInterface } from "../interfaces.js"; import * as Consts from "../consts.js"; /** * @class BasicMotor * @extends Device */ export declare class BasicMotor extends Device { constructor(hub: IDeviceInterface, portId: number, modeMap: { [event: string]: number; }, type?: Consts.DeviceType); /** * Set the motor power. * @param {number} power For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. * @param {boolean} [interrupt=false] If true, previous commands are discarded. * @returns {Promise} Resolved upon completion of command. */ setPower(power: number, interrupt?: boolean): Promise | undefined; /** * Ramp the motor power. * @param {number} fromPower For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. * @param {number} toPower For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. * @param {number} time How long the ramp should last (in milliseconds). * @returns {Promise} Resolved upon completion of command. */ rampPower(fromPower: number, toPower: number, time: number): Promise | undefined; /** * Stop the motor. Previous commands that have not completed are discarded. * @returns {Promise} Resolved upon completion of command. */ stop(): Promise | undefined; /** * Brake the motor. Previous commands that have not completed are discarded. * @returns {Promise} Resolved upon completion of command. */ brake(): Promise | undefined; } //# sourceMappingURL=basicmotor.d.ts.map