@bsb/base 9.0.0 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +11 -49
  2. package/lib/plugins/config-default/interfaces.d.ts +3 -2
  3. package/lib/schemas/config-default.plugin.json +1 -1
  4. package/lib/schemas/events-default.plugin.json +1 -1
  5. package/lib/schemas/observable-default.plugin.json +1 -1
  6. package/lib/serviceBase/events.js +2 -2
  7. package/lib/serviceBase/events.js.map +1 -1
  8. package/lib/serviceBase/observable.js +1 -1
  9. package/lib/serviceBase/observable.js.map +1 -1
  10. package/lib/serviceBase/plugins.d.ts +8 -1
  11. package/lib/serviceBase/plugins.js +115 -25
  12. package/lib/serviceBase/plugins.js.map +1 -1
  13. package/lib/serviceBase/services.js +2 -2
  14. package/lib/serviceBase/services.js.map +1 -1
  15. package/lib/tests/mocks.d.ts +37 -0
  16. package/lib/tests/mocks.js +164 -0
  17. package/lib/tests/mocks.js.map +1 -0
  18. package/lib/tests/sb/plugins/events/broadcast.d.ts +30 -0
  19. package/lib/tests/sb/plugins/events/broadcast.js +357 -0
  20. package/lib/tests/sb/plugins/events/broadcast.js.map +1 -0
  21. package/lib/tests/sb/plugins/events/emit.d.ts +30 -0
  22. package/lib/tests/sb/plugins/events/emit.js +353 -0
  23. package/lib/tests/sb/plugins/events/emit.js.map +1 -0
  24. package/lib/tests/sb/plugins/events/emitAndReturn.d.ts +30 -0
  25. package/lib/tests/sb/plugins/events/emitAndReturn.js +382 -0
  26. package/lib/tests/sb/plugins/events/emitAndReturn.js.map +1 -0
  27. package/lib/tests/sb/plugins/events/emitStreamAndReceiveStream.d.ts +30 -0
  28. package/lib/tests/sb/plugins/events/emitStreamAndReceiveStream.js +298 -0
  29. package/lib/tests/sb/plugins/events/emitStreamAndReceiveStream.js.map +1 -0
  30. package/lib/tests/sb/plugins/events/index.d.ts +28 -0
  31. package/lib/tests/sb/plugins/events/index.js +69 -0
  32. package/lib/tests/sb/plugins/events/index.js.map +1 -0
  33. package/lib/tests/trace.d.ts +41 -0
  34. package/lib/tests/trace.js +85 -0
  35. package/lib/tests/trace.js.map +1 -0
  36. package/package.json +92 -91
@@ -0,0 +1,382 @@
1
+ "use strict";
2
+ /**
3
+ * BSB (Better-Service-Base) is an event-bus based microservice framework.
4
+ * Copyright (C) 2016 - 2025 BetterCorp (PTY) Ltd
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License as published
8
+ * by the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * Alternatively, you may obtain a commercial license for this program.
12
+ * The commercial license allows you to use the Program in a closed-source manner,
13
+ * including the right to create derivative works that are not subject to the terms
14
+ * of the AGPL.
15
+ *
16
+ * To obtain a commercial license, please contact the copyright holders at
17
+ * https://www.bettercorp.dev. The terms and conditions of the commercial license
18
+ * will be provided upon request.
19
+ *
20
+ * This program is distributed in the hope that it will be useful,
21
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ * GNU Affero General Public License for more details.
24
+ *
25
+ * You should have received a copy of the GNU Affero General Public License
26
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
27
+ */
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.emitAndReturn = emitAndReturn;
30
+ const index_1 = require("../../../../index");
31
+ const assert = require("assert");
32
+ const crypto_1 = require("crypto");
33
+ const trace_1 = require("../../../trace");
34
+ const randomName = () => (0, crypto_1.randomUUID)();
35
+ function emitAndReturn(genNewPlugin, maxTimeoutToExpectAResponse) {
36
+ let emitter;
37
+ beforeEach(async () => {
38
+ emitter = await genNewPlugin();
39
+ });
40
+ afterEach(function () {
41
+ (0, index_1.SmartFunctionCallSync)(emitter, emitter.dispose);
42
+ });
43
+ describe("EmitAndReturn", async () => {
44
+ const timermaxTimeoutToExpectAResponse = maxTimeoutToExpectAResponse + 10;
45
+ describe("emitEventAndReturn", async () => {
46
+ const emitData = true;
47
+ const emitData2 = false;
48
+ it("should not respond to different listen events when same event name used with diff plugins", async () => {
49
+ const thisPlugin = randomName();
50
+ const thisPlugin2 = randomName();
51
+ const thisEvent = randomName();
52
+ const obs = (0, trace_1.createTestObservable)();
53
+ const emitTimeout = setTimeout(() => {
54
+ assert.fail("Event not received");
55
+ }, timermaxTimeoutToExpectAResponse);
56
+ await emitter.onReturnableEvent(obs, thisPlugin, thisEvent, async () => {
57
+ assert.fail("Received onEvent with diff plugin name");
58
+ });
59
+ await emitter.onReturnableEvent(obs, thisPlugin2, thisEvent, async (receivedObs) => {
60
+ assert.strictEqual(receivedObs.traceId, obs.traceId);
61
+ setTimeout(() => {
62
+ //console.log("Received onEvent");
63
+ assert.ok(true, "Received onEvent");
64
+ }, 1);
65
+ return emitData2;
66
+ });
67
+ await emitter.emitEventAndReturn(obs, thisPlugin2, thisEvent, maxTimeoutToExpectAResponse / 1000, []);
68
+ clearTimeout(emitTimeout);
69
+ assert.ok(true, "Received Response");
70
+ });
71
+ it("should be able to emit to events with plugin name defined", async () => {
72
+ const thisPlugin = randomName();
73
+ const thisEvent = randomName();
74
+ const obs = (0, trace_1.createTestObservable)();
75
+ const emitTimeout = setTimeout(() => {
76
+ assert.fail("Event not received");
77
+ }, timermaxTimeoutToExpectAResponse);
78
+ await emitter.onReturnableEvent(obs, thisPlugin, thisEvent, async (receivedObs) => {
79
+ assert.strictEqual(receivedObs.traceId, obs.traceId);
80
+ setTimeout(() => {
81
+ //console.log("Received onEvent");
82
+ assert.ok(true, "Received onEvent");
83
+ }, 1);
84
+ return emitData2;
85
+ });
86
+ await emitter.emitEventAndReturn(obs, thisPlugin, thisEvent, maxTimeoutToExpectAResponse / 1000, []);
87
+ clearTimeout(emitTimeout);
88
+ assert.ok(true, "Received Response");
89
+ });
90
+ it("should be able to emit to events with self", async () => {
91
+ const thisCaller = randomName();
92
+ const thisEvent = randomName();
93
+ const obs = (0, trace_1.createTestObservable)();
94
+ const emitTimeout = setTimeout(() => {
95
+ assert.fail("Event not received");
96
+ }, timermaxTimeoutToExpectAResponse);
97
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, async (receivedObs) => {
98
+ assert.strictEqual(receivedObs.traceId, obs.traceId);
99
+ assert.ok(true, "Received onEvent");
100
+ return emitData2;
101
+ });
102
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent, maxTimeoutToExpectAResponse / 1000, [emitData]);
103
+ clearTimeout(emitTimeout);
104
+ assert.ok(true, "Received Response");
105
+ });
106
+ it("should not be able to emit to other events with plugin name defined", async () => {
107
+ const thisPlugin = randomName();
108
+ const thisEvent = randomName();
109
+ const thisEvent2 = randomName();
110
+ const obs = (0, trace_1.createTestObservable)();
111
+ const emitTimeout = setTimeout(() => {
112
+ assert.ok(true);
113
+ }, timermaxTimeoutToExpectAResponse);
114
+ await emitter.onReturnableEvent(obs, thisPlugin, thisEvent, () => {
115
+ assert.fail("EEAR MSG Received");
116
+ });
117
+ try {
118
+ await emitter.emitEventAndReturn(obs, thisPlugin, thisEvent2, maxTimeoutToExpectAResponse / 1000, [emitData]);
119
+ clearTimeout(emitTimeout);
120
+ assert.fail("EEAR Returned");
121
+ }
122
+ catch (exc) {
123
+ clearTimeout(emitTimeout);
124
+ assert.ok("Timeout of EEAR");
125
+ }
126
+ });
127
+ it("should not be able to emit to other events with self", async () => {
128
+ const thisCaller = randomName();
129
+ const thisEvent = randomName();
130
+ const thisEvent2 = randomName();
131
+ const obs = (0, trace_1.createTestObservable)();
132
+ const emitTimeout = setTimeout(() => {
133
+ assert.ok(true);
134
+ }, timermaxTimeoutToExpectAResponse);
135
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, () => {
136
+ assert.fail("EEAR MSG Received");
137
+ });
138
+ try {
139
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent2, maxTimeoutToExpectAResponse / 1000, [emitData]);
140
+ clearTimeout(emitTimeout);
141
+ assert.fail("EEAR Returned");
142
+ }
143
+ catch (exc) {
144
+ clearTimeout(emitTimeout);
145
+ assert.ok("Timeout of EEAR");
146
+ }
147
+ });
148
+ it("should timeout correctly", async () => {
149
+ const thisCaller = randomName();
150
+ const thisEvent = randomName();
151
+ const obs = (0, trace_1.createTestObservable)();
152
+ const emitTimeout = setTimeout(() => {
153
+ assert.fail("Event not received");
154
+ }, timermaxTimeoutToExpectAResponse);
155
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, async () => {
156
+ });
157
+ try {
158
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent, maxTimeoutToExpectAResponse / 1000, [emitData]);
159
+ clearTimeout(emitTimeout);
160
+ assert.fail("EEAR Returned");
161
+ }
162
+ catch (exc) {
163
+ clearTimeout(emitTimeout);
164
+ assert.ok("Timeout of EEAR");
165
+ }
166
+ });
167
+ it("should response error correctly", async () => {
168
+ const thisCaller = randomName();
169
+ const thisEvent = randomName();
170
+ const obs = (0, trace_1.createTestObservable)();
171
+ const emitTimeout = setTimeout(() => {
172
+ assert.fail("Event not received");
173
+ }, timermaxTimeoutToExpectAResponse);
174
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, () => {
175
+ throw "THISISANERROR";
176
+ });
177
+ try {
178
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent, maxTimeoutToExpectAResponse / 1000, [emitData]);
179
+ clearTimeout(emitTimeout);
180
+ assert.fail("EEAR Returned");
181
+ }
182
+ catch (exc) {
183
+ clearTimeout(emitTimeout);
184
+ assert.ok("EEAR");
185
+ assert.strictEqual(exc, "THISISANERROR");
186
+ }
187
+ });
188
+ });
189
+ const typesToTest = [
190
+ {
191
+ name: "DiffData",
192
+ data: null,
193
+ rData: "HELLO WORLD",
194
+ },
195
+ {
196
+ name: "Null",
197
+ data: null,
198
+ },
199
+ {
200
+ name: "Boolean true",
201
+ data: true,
202
+ },
203
+ {
204
+ name: "Boolean false",
205
+ data: false,
206
+ },
207
+ {
208
+ name: "String",
209
+ data: "HELLO WO4lD",
210
+ },
211
+ {
212
+ name: "Min Number",
213
+ data: Number.MIN_SAFE_INTEGER,
214
+ },
215
+ {
216
+ name: "Max Number",
217
+ data: Number.MAX_SAFE_INTEGER,
218
+ },
219
+ {
220
+ name: "Array",
221
+ data: [
222
+ 0,
223
+ "Hello",
224
+ true,
225
+ ],
226
+ },
227
+ {
228
+ name: "Object",
229
+ data: {
230
+ name: "Sarah",
231
+ surname: "Blond",
232
+ age: 24,
233
+ meta: {
234
+ location: [
235
+ -12212,
236
+ 55336,
237
+ ],
238
+ },
239
+ },
240
+ },
241
+ ];
242
+ for (const typeToTest of typesToTest) {
243
+ describe(`emitEventAndReturn ${typeToTest.name}`, async () => {
244
+ it("should be able to emit to events with plugin name defined", async () => {
245
+ const thisPlugin = randomName();
246
+ const thisEvent = randomName();
247
+ const obs = (0, trace_1.createTestObservable)();
248
+ const emitTimeout = setTimeout(() => {
249
+ assert.fail("Event not received");
250
+ }, timermaxTimeoutToExpectAResponse);
251
+ await emitter.onReturnableEvent(obs, thisPlugin, thisEvent, async (receivedObs) => {
252
+ assert.strictEqual(receivedObs.traceId, obs.traceId);
253
+ return typeToTest.rData !== undefined
254
+ ? typeToTest.rData
255
+ : typeToTest.data;
256
+ });
257
+ const resp = await emitter.emitEventAndReturn(obs, thisPlugin, thisEvent, maxTimeoutToExpectAResponse / 1000, [typeToTest.data]);
258
+ clearTimeout(emitTimeout);
259
+ assert.strictEqual(JSON.stringify(resp), JSON.stringify(typeToTest.rData !== undefined
260
+ ? typeToTest.rData
261
+ : typeToTest.data));
262
+ });
263
+ it("should be able to emit to events with self", async () => {
264
+ const thisCaller = randomName();
265
+ const thisEvent = randomName();
266
+ const obs = (0, trace_1.createTestObservable)();
267
+ const emitTimeout = setTimeout(() => {
268
+ assert.fail("Event not received - timeout");
269
+ }, timermaxTimeoutToExpectAResponse);
270
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, async (receivedObs, data) => {
271
+ assert.strictEqual(receivedObs.traceId, obs.traceId);
272
+ clearTimeout(emitTimeout);
273
+ assert.strictEqual(JSON.stringify(data[0]), JSON.stringify(typeToTest.data), "Received data");
274
+ return typeToTest.rData || typeToTest.data;
275
+ });
276
+ assert.strictEqual(JSON.stringify(await emitter.emitEventAndReturn(obs, thisCaller, thisEvent, maxTimeoutToExpectAResponse / 1000, [typeToTest.data])), JSON.stringify(typeToTest.rData || typeToTest.data), "Returned data");
277
+ clearTimeout(emitTimeout);
278
+ });
279
+ it("should not be able to emit to other events with plugin name defined", async () => {
280
+ const thisPlugin = randomName();
281
+ const thisEvent = randomName();
282
+ const thisEvent2 = randomName();
283
+ const obs = (0, trace_1.createTestObservable)();
284
+ const emitTimeout = setTimeout(() => {
285
+ assert.ok(true);
286
+ }, timermaxTimeoutToExpectAResponse);
287
+ await emitter.onReturnableEvent(obs, thisPlugin, thisEvent, () => {
288
+ assert.fail("EEAR MSG Received");
289
+ });
290
+ try {
291
+ await emitter.emitEventAndReturn(obs, thisPlugin, thisEvent2, maxTimeoutToExpectAResponse / 1000, [typeToTest.data]);
292
+ clearTimeout(emitTimeout);
293
+ assert.fail("EEAR Returned");
294
+ }
295
+ catch (exc) {
296
+ clearTimeout(emitTimeout);
297
+ assert.ok("Timeout of EEAR");
298
+ }
299
+ });
300
+ it("should not be able to emit to other events with self", async () => {
301
+ const thisCaller = randomName();
302
+ const thisEvent = randomName();
303
+ const thisEvent2 = randomName();
304
+ const obs = (0, trace_1.createTestObservable)();
305
+ const emitTimeout = setTimeout(() => {
306
+ assert.ok(true);
307
+ }, timermaxTimeoutToExpectAResponse);
308
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, () => {
309
+ assert.fail("EEAR MSG Received");
310
+ });
311
+ try {
312
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent2, maxTimeoutToExpectAResponse / 1000, [typeToTest.data]);
313
+ clearTimeout(emitTimeout);
314
+ assert.fail("EEAR Returned");
315
+ }
316
+ catch (exc) {
317
+ clearTimeout(emitTimeout);
318
+ assert.ok("Timeout of EEAR");
319
+ }
320
+ });
321
+ it("should timeout correctly - general timeout", async () => {
322
+ const thisCaller = randomName();
323
+ const thisEvent = randomName();
324
+ const obs = (0, trace_1.createTestObservable)();
325
+ const emitTimeout = setTimeout(() => {
326
+ assert.fail("Event not received");
327
+ }, timermaxTimeoutToExpectAResponse + 10);
328
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, async () => {
329
+ });
330
+ try {
331
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent, maxTimeoutToExpectAResponse / 1000, [typeToTest.data]);
332
+ clearTimeout(emitTimeout);
333
+ assert.fail("EEAR Returned");
334
+ }
335
+ catch (exc) {
336
+ clearTimeout(emitTimeout);
337
+ assert.ok("Timeout of EEAR");
338
+ }
339
+ });
340
+ it("should timeout correctly - no receipt", async () => {
341
+ const thisCaller = randomName();
342
+ const thisEvent = randomName();
343
+ const obs = (0, trace_1.createTestObservable)();
344
+ const emitTimeout = setTimeout(() => {
345
+ assert.fail("Event not received");
346
+ }, timermaxTimeoutToExpectAResponse + 10);
347
+ try {
348
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent, maxTimeoutToExpectAResponse / 1000, [typeToTest.data]);
349
+ clearTimeout(emitTimeout);
350
+ assert.fail("EEAR Returned");
351
+ }
352
+ catch (exc) {
353
+ clearTimeout(emitTimeout);
354
+ assert.ok("Timeout of EEAR");
355
+ }
356
+ });
357
+ it("should response error correctly", async () => {
358
+ const thisCaller = randomName();
359
+ const thisEvent = randomName();
360
+ const obs = (0, trace_1.createTestObservable)();
361
+ const emitTimeout = setTimeout(() => {
362
+ assert.fail("Event not received");
363
+ }, timermaxTimeoutToExpectAResponse);
364
+ await emitter.onReturnableEvent(obs, thisCaller, thisEvent, () => {
365
+ throw typeToTest.rData || typeToTest.data;
366
+ });
367
+ try {
368
+ await emitter.emitEventAndReturn(obs, thisCaller, thisEvent, maxTimeoutToExpectAResponse / 1000, [typeToTest.data]);
369
+ clearTimeout(emitTimeout);
370
+ assert.fail("EEAR Returned");
371
+ }
372
+ catch (exc) {
373
+ clearTimeout(emitTimeout);
374
+ assert.ok("EEAR");
375
+ assert.strictEqual(JSON.stringify(exc), JSON.stringify(typeToTest.rData || typeToTest.data));
376
+ }
377
+ });
378
+ });
379
+ }
380
+ });
381
+ }
382
+ //# sourceMappingURL=emitAndReturn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emitAndReturn.js","sourceRoot":"","sources":["../../../../../src/tests/sb/plugins/events/emitAndReturn.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;AASH,sCA2dC;AAleD,6CAAiF;AACjF,iCAAiC;AACjC,mCAAoC;AACpC,0CAAsD;AAEtD,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,IAAA,mBAAU,GAAE,CAAC;AAEtC,SAAgB,aAAa,CAC3B,YAAwC,EACxC,2BAAmC;IAEnC,IAAI,OAAkB,CAAC;IACvB,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,OAAO,GAAG,MAAM,YAAY,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IACH,SAAS,CAAC;QACR,IAAA,6BAAqB,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,gCAAgC,GAAG,2BAA2B,GAAG,EAAE,CAAC;QAC1E,QAAQ,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;YACxC,MAAM,QAAQ,GAAG,IAAI,CAAC;YACtB,MAAM,SAAS,GAAG,KAAK,CAAC;YACxB,EAAE,CAAC,2FAA2F,EAAE,KAAK,IAAI,EAAE;gBACzG,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC;gBAChC,MAAM,WAAW,GAAG,UAAU,EAAE,CAAC;gBACjC,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC;g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AG,UAAU,CAAC,GAAG,EAAE;wBAClC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;oBACpC,CAAC,EAAE,gCAAgC,CAAC,CAAC;oBACrC,MAAM,OAAO,CAAC,iBAAiB,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;wBAC/D,MAAM,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC;oBAC5C,CAAC,CAAC,CAAC;oBACH,IAAI,CAAC;wBACH,MAAM,OAAO,CAAC,kBAAkB,CAC9B,GAAG,EACH,UAAU,EACV,SAAS,EACT,2BAA2B,GAAG,IAAI,EAClC,CAAC,UAAU,CAAC,IAAI,CAAC,CAClB,CAAC;wBACF,YAAY,CAAC,WAAW,CAAC,CAAC;wBAC1B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;oBAC/B,CAAC;oBACD,OAAO,GAAG,EAAE,CAAC;wBACX,YAAY,CAAC,WAAW,CAAC,CAAC;wBAC1B,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;wBAClB,MAAM,CAAC,WAAW,CAChB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EACnB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CACpD,CAAC;oBACJ,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * BSB (Better-Service-Base) is an event-bus based microservice framework.
3
+ * Copyright (C) 2016 - 2025 BetterCorp (PTY) Ltd
4
+ *
5
+ * This program is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU Affero General Public License as published
7
+ * by the Free Software Foundation, either version 3 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * Alternatively, you may obtain a commercial license for this program.
11
+ * The commercial license allows you to use the Program in a closed-source manner,
12
+ * including the right to create derivative works that are not subject to the terms
13
+ * of the AGPL.
14
+ *
15
+ * To obtain a commercial license, please contact the copyright holders at
16
+ * https://www.bettercorp.dev. The terms and conditions of the commercial license
17
+ * will be provided upon request.
18
+ *
19
+ * This program is distributed in the hope that it will be useful,
20
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ * GNU Affero General Public License for more details.
23
+ *
24
+ * You should have received a copy of the GNU Affero General Public License
25
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
26
+ */
27
+ import { BSBEvents } from "../../../../index";
28
+ export declare function emitStreamAndReceiveStream(genNewPlugin: {
29
+ (): Promise<BSBEvents>;
30
+ }, maxTimeoutToExpectAResponse: number): void;