from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.uno import XInterface

@runtime_checkable
class XDatabaseRange(XInterface, Protocol):
    def getDataArea(self) -> CellRangeAddress: ...
    def setDataArea(self, aDataArea: CellRangeAddress) -> None: ...
    def getSortDescriptor(self) -> list[PropertyValue]: ...
    def getFilterDescriptor(self) -> XSheetFilterDescriptor: ...
    def getSubTotalDescriptor(self) -> XSubTotalDescriptor: ...
    def getImportDescriptor(self) -> list[PropertyValue]: ...
    def refresh(self) -> None: ...
