-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.d.ts
28 lines (25 loc) · 829 Bytes
/
message.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/// <reference types="node" />
export declare interface Message {
[x: string]: any;
toJSON: () => {
[x: string]: any;
};
toString: () => string;
}
export interface DeliveryOutcome {
[x: string]: any;
}
export interface message {
data_section: (data: any) => any;
sequence_section: (list: any) => any;
data_sections: (data_elements: any) => any;
sequence_sections: (lists: any) => any;
encode: (msg: any) => Buffer;
decode: (buffer: Buffer) => Message;
are_outcomes_equivalent: (a: any, b: any) => boolean;
is_received: (o: Readonly<DeliveryOutcome>) => boolean;
is_accepted: (o: Readonly<DeliveryOutcome>) => boolean;
is_rejected: (o: Readonly<DeliveryOutcome>) => boolean;
is_released: (o: Readonly<DeliveryOutcome>) => boolean;
is_modified: (o: Readonly<DeliveryOutcome>) => boolean;
}