from __future__ import annotations
from typing import Any, Protocol, runtime_checkable

@runtime_checkable
class XPackageManager(Protocol):
    def getContext(self) -> str: ...
    def getSupportedPackageTypes(self) -> list[XPackageTypeInfo]: ...
    def createAbortChannel(self) -> XAbortChannel: ...
    def isReadOnly(self) -> bool: ...
