from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.container import XNameAccess

@runtime_checkable
class XDatabaseRanges(XNameAccess, Protocol):
    def addNewByName(self, aName: str, aRange: CellRangeAddress) -> None: ...
    def removeByName(self, aName: str) -> None: ...
