import type { ErrorResponse } from '../models/ErrorResponse'; import type { HAMPStartResponse } from '../models/HAMPStartResponse'; import type { HAMPState } from '../models/HAMPState'; import type { HAMPStopResponse } from '../models/HAMPStopResponse'; import type { HAMPVelocityPercent } from '../models/HAMPVelocityPercent'; import type { HAMPVelocityPercentResponse } from '../models/HAMPVelocityPercentResponse'; import type { RPCResult } from '../models/RPCResult'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class HampService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Start alternating motion. * Start alternating motion. No effect if the device is already moving. * @param xConnectionKey Device connection key or a channel reference. * @returns any HAMPStartResponse * @throws ApiError */ start(xConnectionKey: string): CancelablePromise<(ErrorResponse | HAMPStartResponse)>; /** * Stop alternating motion. * Stop alternating motion. No effect if the device is already stopped. * @param xConnectionKey Device connection key or a channel reference. * @returns any HAMPStopResponse * @throws ApiError */ hampStop(xConnectionKey: string): CancelablePromise<(ErrorResponse | HAMPStopResponse)>; /** * Get the HAMP velocity setting of the device in percent. * Get the HAMP velocity setting of the device in percent. * @param xConnectionKey Device connection key or a channel reference. * @returns any HAMPVelocityPercentResponse * @throws ApiError */ getHampVelocityPercent(xConnectionKey: string): CancelablePromise<(ErrorResponse | HAMPVelocityPercentResponse)>; /** * Set the HAMP velocity setting of the device in percent. * Set the HAMP velocity setting of the alternating motion in percent.
NOTE: The velocity can only be set when HAMP mode is enabled (mode=2) and when the slide is moving (HAMP state=2). Attempting to set the velocity outside of this mode/state will result in an error response. * @param xConnectionKey Device connection key or a channel reference. * @param requestBody * @returns any RPCResult * @throws ApiError */ setHampVelocityPercent(xConnectionKey: string, requestBody: HAMPVelocityPercent): CancelablePromise<(ErrorResponse | RPCResult)>; /** * Get the HAMP state of the device. * Get the HAMP state of the device. See HAMPStateResponse schema for possible values. * @param xConnectionKey Device connection key or a channel reference. * @returns any HAMPState * @throws ApiError */ getHampState(xConnectionKey: string): CancelablePromise<(ErrorResponse | (RPCResult & { state: HAMPState; }))>; }