# Copyright 2026 Helmut Grohne <helmut@subdivi.de>
# SPDX-License-Identifier: LGPL-2.0-or-later


from . import low_level


class MatchRule:
    def __init__(
        self,
        *,
        type: str | None = None,
        sender: None = None,
        interface: str | None = None,
        member: str | None = None,
        path: str | None = None,
        path_namespace: None = None,
        destination: None = None,
        eavesdrop: bool = False
    ): ...


class DBus:
    def AddMatch(self, rule: MatchRule) -> low_level.Message: ...

    def RemoveMatch(self, rule: MatchRule) -> low_level.Message: ...


message_bus: DBus
