from typing import Protocol, runtime_checkable

@runtime_checkable
class IDisplayWriter(Protocol):
    def clear(self): ...
    def render(self, lines, stream_type:str|None=None): ...
    def write(self, html:str): ...
