UNPKG

@tanislav000/bluez

Version:

Bluez5 D-Bus bindings for easy to use bluetooth access in Node.js

27 lines (26 loc) 1.15 kB
import * as DBus from "dbus-next"; import { LooselyTypedEmitter, EventListenerSignature } from "../utilts"; /***** Signals for org.freedesktop.DBus.ObjectManager *****/ interface OrgFreedesktopDBusObjectManagerEvents { InterfacesAdded: (object: DBus.ObjectPath, interfaces: { [key: string]: any; }) => void; InterfacesRemoved: (object: DBus.ObjectPath, interfaces: Array<string>) => void; } /** * Service: org.bluez * ObjectPath: / * Interface: org.freedesktop.DBus.ObjectManager */ export declare class OrgFreedesktopDBusObjectManager<L extends EventListenerSignature<L> = Record<string, never>> extends LooselyTypedEmitter<OrgFreedesktopDBusObjectManagerEvents & L> { static readonly DbusInterfaceName = "org.freedesktop.DBus.ObjectManager"; dbusObject: DBus.ProxyObject; thisDBusInterface: DBus.ClientInterface; static Connect(bus: DBus.MessageBus, objectPath?: string, xml?: string): Promise<OrgFreedesktopDBusObjectManager>; constructor(dbusObject: DBus.ProxyObject); /***** Methods *****/ GetManagedObjects(): Promise</* a{oa{sa{sv}}} */ { [key: string]: any; }>; } export {};