import { ConnectionState } from '@iotize/tap/protocol/api'; import { CharacteristicAdapterInterface, CharacteristicProperties, DescriptorAdapterInterface, PeripheralAdapterInterface, ServiceAdapterInterface } from '@iotize/tap/protocol/ble/common'; import { BehaviorSubject, Observable } from 'rxjs'; export declare class MockPeripheralAdapter implements PeripheralAdapterInterface { options: { state: 'connected' | 'disconnected'; connectDelay: number; disconnectDelay: number; name: string; id: string; }; services: Partial>; stateChange: BehaviorSubject; constructor(options?: { state: 'connected' | 'disconnected'; connectDelay: number; disconnectDelay: number; name: string; id: string; }); get id(): string; get name(): string; get state(): "connected" | "disconnected"; connect(): Promise; disconnect(): Promise; discoverServices(): Promise>>; getService(uuid: string): Promise; close(): void; } export declare class MockServiceAdapter implements ServiceAdapterInterface { uuid: string; characteristics: CharacteristicAdapterInterface[]; constructor(uuid: string, characteristics?: CharacteristicAdapterInterface[]); getCharacteristics(): Promise[]>; getCharacteristic(charcUUID: string): Promise>; } export declare class MockCharacteristicAdapter implements CharacteristicAdapterInterface { readonly uuid: string; readonly properties: CharacteristicProperties; readonly descriptors: DescriptorAdapterInterface[]; notificationEnabled: boolean; data: Observable<{ data: Uint8Array; isNotification: boolean; }>; constructor(uuid: string, properties: CharacteristicProperties, descriptors?: DescriptorAdapterInterface[]); write(data: Uint8Array, writeWithoutResponse: boolean): Promise; read(): Promise; enableNotifications(enabled: boolean): Promise; getDescriptors(): Promise; }