UNPKG

2.04 kBTypeScriptView Raw
1import { RequestType, RequestType0, NotificationType, NotificationType0, ProgressType, _EM } from 'vscode-jsonrpc';
2export declare enum MessageDirection {
3 clientToServer = "clientToServer",
4 serverToClient = "serverToClient",
5 both = "both"
6}
7export declare class RegistrationType<RO> {
8 /**
9 * Clients must not use this property. It is here to ensure correct typing.
10 */
11 readonly ____: [RO, _EM] | undefined;
12 readonly method: string;
13 constructor(method: string);
14}
15export declare class ProtocolRequestType0<R, PR, E, RO> extends RequestType0<R, E> implements ProgressType<PR>, RegistrationType<RO> {
16 /**
17 * Clients must not use these properties. They are here to ensure correct typing.
18 * in TypeScript
19 */
20 readonly __: [PR, _EM] | undefined;
21 readonly ___: [PR, RO, _EM] | undefined;
22 readonly ____: [RO, _EM] | undefined;
23 readonly _pr: PR | undefined;
24 constructor(method: string);
25}
26export declare class ProtocolRequestType<P, R, PR, E, RO> extends RequestType<P, R, E> implements ProgressType<PR>, RegistrationType<RO> {
27 /**
28 * Clients must not use this property. It is here to ensure correct typing.
29 */
30 readonly __: [PR, _EM] | undefined;
31 readonly ___: [PR, RO, _EM] | undefined;
32 readonly ____: [RO, _EM] | undefined;
33 readonly _pr: PR | undefined;
34 constructor(method: string);
35}
36export declare class ProtocolNotificationType0<RO> extends NotificationType0 implements RegistrationType<RO> {
37 /**
38 * Clients must not use this property. It is here to ensure correct typing.
39 */
40 readonly ___: [RO, _EM] | undefined;
41 readonly ____: [RO, _EM] | undefined;
42 constructor(method: string);
43}
44export declare class ProtocolNotificationType<P, RO> extends NotificationType<P> implements RegistrationType<RO> {
45 /**
46 * Clients must not use this property. It is here to ensure correct typing.
47 */
48 readonly ___: [RO, _EM] | undefined;
49 readonly ____: [RO, _EM] | undefined;
50 constructor(method: string);
51}