# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.7

import datetime
import sys
import types
import typing

import winsdk._winrt as _winrt

Self = typing.TypeVar('Self')

class RemoteTextConnection(_winrt.Object):
    is_enabled: _winrt.Boolean
    def __enter__(self: Self) -> Self: ...
    def __exit__(self, *args) -> None: ...
    @staticmethod
    def _from(obj: _winrt.Object) -> RemoteTextConnection: ...
    def __new__(cls: typing.Type[RemoteTextConnection], connection_id: _winrt.Guid, pdu_forwarder: typing.Optional[RemoteTextConnectionDataHandler]) -> RemoteTextConnection:...
    def close(self) -> None: ...
    def register_thread(self, thread_id: _winrt.UInt32) -> None: ...
    def report_data_received(self, pdu_data: typing.Sequence[_winrt.UInt8]) -> None: ...
    def unregister_thread(self, thread_id: _winrt.UInt32) -> None: ...

RemoteTextConnectionDataHandler = typing.Callable[[typing.Sequence[_winrt.UInt8]], _winrt.Boolean]

