{"version":3,"sources":["src/common/IConnection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,oBAAY,eAAe;IACvB,IAAI,IAAA;IACJ,SAAS,IAAA;IACT,UAAU,IAAA;IACV,YAAY,IAAA;CACf;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,IAAI,eAAe,CAAC;IACzB,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACxC,IAAI,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACnC,MAAM,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IACrC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C","file":"IConnection.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { ConnectionEvent } from \"./ConnectionEvents.js\";\nimport { ConnectionMessage } from \"./ConnectionMessage.js\";\nimport { ConnectionOpenResponse } from \"./ConnectionOpenResponse.js\";\nimport { EventSource } from \"./EventSource.js\";\n\nexport enum ConnectionState {\n    None,\n    Connected,\n    Connecting,\n    Disconnected,\n}\n\nexport interface IConnection {\n    id: string;\n    state(): ConnectionState;\n    open(): Promise<ConnectionOpenResponse>;\n    send(message: ConnectionMessage): Promise<void>;\n    read(): Promise<ConnectionMessage>;\n    events: EventSource<ConnectionEvent>;\n    dispose(disposing?: string): Promise<void>;\n}\n"]}