import type { Characteristic, Peripheral } from '@stoprocent/noble'; import type { OneKeyDeviceInfoBase } from '@onekeyfe/hd-transport'; export interface DeviceInfo extends OneKeyDeviceInfoBase { id: string; name: string; state: string; mtu?: number; } export interface CharacteristicPair { write: Characteristic; notify: Characteristic; } export interface NobleModule { state: string; startScanning(serviceUUIDs: string[], allowDuplicates: boolean, callback?: (error?: Error) => void): void; stopScanning(callback?: () => void): void; stop(): void; cancelConnect?(id: string): void; on(event: 'stateChange', listener: (state: string) => void): void; on(event: 'discover', listener: (peripheral: Peripheral) => void): void; removeListener(event: 'stateChange', listener: (state: string) => void): void; removeListener(event: 'discover', listener: (peripheral: Peripheral) => void): void; } export interface Logger { info(message: string, ...args: any[]): void; debug(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; error(message: string, ...args: any[]): void; } export declare function safeLog(logger: Logger | null, level: 'info' | 'debug' | 'error', message: string, ...args: any[]): void; //# sourceMappingURL=noble-extended.d.ts.map