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

@runtime_checkable
class XSidebarPanel(Protocol):
    def getHeightForWidth(self, nWidth: int) -> LayoutSize: ...
    def getMinimalWidth(self) -> int: ...
