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

@runtime_checkable
class XFormLayerAccess(Protocol):
    def getFormController(self, Form: XForm) -> XFormController: ...
    def isFormDesignMode(self) -> bool: ...
    def setFormDesignMode(self, DesignMode: bool) -> None: ...
