// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. import { DataReceived, ConnectionClosed } from "./Common" import { TransportType, TransferMode, ITransport } from "./Transports" export interface IConnection { readonly features: any; start(): Promise; send(data: any): Promise; stop(): void; onDataReceived: DataReceived; onClosed: ConnectionClosed; }