from typing import Any

def log_info(*args, **kwargs) -> Any: ...
def log_warn(*args, **kwargs) -> Any: ...
def log_error(*args, **kwargs) -> Any: ...
def ensure_active(*args, **kwargs) -> Any: ...
def register_irq_handler(*args, **kwargs) -> Any: ...
def const(*args, **kwargs) -> Any: ...

ble: Any

class DeviceTimeout:
    def __init__(self, *argv, **kwargs) -> None: ...

class DeviceConnection:
    def timeout(self, *args, **kwargs) -> Any: ...
    def services(self, *args, **kwargs) -> Any: ...
    def is_connected(self, *args, **kwargs) -> Any: ...
    service: Any
    pair: Any
    exchange_mtu: Any
    l2cap_accept: Any
    disconnected: Any
    disconnect: Any
    l2cap_connect: Any
    device_task: Any
    def __init__(self, *argv, **kwargs) -> None: ...

class ScanResult:
    def name(self, *args, **kwargs) -> Any: ...
    manufacturer: Any
    services: Any
    def __init__(self, *argv, **kwargs) -> None: ...

class scan:
    cancel: Any
    def __init__(self, *argv, **kwargs) -> None: ...

class Device:
    def addr_hex(self, *args, **kwargs) -> Any: ...
    connect: Any
    def __init__(self, *argv, **kwargs) -> None: ...
