You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fbc/types/buttplug.io.1.0.17/client.d.ts

37 lines
1.2 KiB
TypeScript

/*!
* Buttplug JS Source Code File - Visit https://buttplug.io for more info about
* the project. Licensed under the BSD 3-Clause license. See LICENSE file in the
* project root for full license information.
*
* @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved.
*/
import { EventEmitter } from "events";
import {
ButtplugEmbeddedConnectorOptions,
ButtplugWebsocketConnectorOptions,
} from "./connectors.js";
import { ButtplugClientDevice } from "./device.js";
export declare class ButtplugClient extends EventEmitter {
protected _devices: Map<number, ButtplugClientDevice>;
protected _clientName: string;
private _clientPtr?;
protected _isScanning: boolean;
private _connected;
private _sorter;
constructor(clientName?: string);
get Connected(): boolean;
get Devices(): ButtplugClientDevice[];
get isScanning(): boolean;
connect: (
options:
| ButtplugEmbeddedConnectorOptions
| ButtplugWebsocketConnectorOptions
) => Promise<void>;
disconnect: () => Promise<void>;
startScanning: () => Promise<void>;
stopScanning: () => Promise<void>;
stopAllDevices: () => Promise<void>;
protected CheckConnector(): void;
private sorterCallback;
}