UNPKG

@openhps/sphero

Version:

Open Hybrid Positioning System - Sphero component

20 lines (19 loc) 1 kB
/// <reference types="web-bluetooth" /> import { BB9E } from './toys/bb9e'; import { Core } from './toys/core'; import { LightningMcQueen } from './toys/lightning-mcqueen'; import { R2D2 } from './toys/r2d2'; import { R2Q5 } from './toys/r2q5'; import { SpheroMini } from './toys/sphero-mini'; import { IToyAdvertisement } from './toys/types'; export interface IToyDiscovered extends IToyAdvertisement { peripheral: BluetoothDevice; } export declare function findToy(type: IToyAdvertisement): Promise<BluetoothDevice>; export declare const find: <T extends Core>(toyType: IToyAdvertisement, name?: string) => Promise<T>; export declare const findBB9E: () => Promise<BB9E>; export declare const findR2D2: () => Promise<R2D2>; export declare const findR2Q5: () => Promise<R2Q5>; export declare const findSpheroMini: () => Promise<SpheroMini>; export declare const findSpheroMiniByName: (name: string) => Promise<SpheroMini>; export declare const findLightningMcQueen: () => Promise<LightningMcQueen>;