def buildhash() -> str: ...
def open_backend(data: bytes, log_file: str | None) -> Backend: ...

class Backend:
    @classmethod
    def command(self, service: int, method: int, data: bytes) -> bytes: ...
    def db_command(self, data: bytes) -> bytes: ...
