import type { BluetoothDeviceLike, BluetoothRemoteGATTServerLike } from '@dg-kit/protocol'; import type { PluginBlecApi } from './plugin-blec.js'; /** * Synthesizes BluetoothDevice/Server/Service shapes from plugin-blec's flat API * so protocol adapters (Coyote, and now the sensor/Opossum adapters too) * receive the same `(device, server)` context they do in a browser. * * One shim per device address. The multi-connection fork this package is * pinned to (`0xNullAI/tauri-plugin-blec-multi`) can hold several devices * connected concurrently, each tracked independently by address — every * plugin-blec call this shim's characteristics make is scoped to * `args.address` so two shims (e.g. a Coyote and an Opossum) never step on * each other. Disconnection is signalled via the `connect()` `onDisconnect` * callback, which fires the `gattserverdisconnected` event on `device` to * mirror the Web Bluetooth event model. */ export declare function createGattShim(args: { address: string; name: string; api: PluginBlecApi; onDisconnect: () => void; }): { device: BluetoothDeviceLike; server: BluetoothRemoteGATTServerLike; fireDisconnect: () => void; }; //# sourceMappingURL=gatt-shim.d.ts.map