@noxfly/noxus 1.1.9 → 1.2.0

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.
@@ -1,209 +1,11 @@
1
+ import { R as Request, I as IResponse, M as MaybeAsync, T as Type, a as IGuard, L as Lifetime } from './index-5OkVPHfI.mjs';
2
+ export { A as AppInjector, h as AtomicHttpMethod, d as Authorize, D as Delete, G as Get, H as HttpMethod, o as IBatchRequestItem, p as IBatchRequestPayload, q as IBatchResponsePayload, b as IBinding, s as IRendererEventMessage, n as IRequest, f as IRouteMetadata, l as Patch, P as Post, k as Put, r as RENDERER_EVENT_TYPE, m as ROUTE_METADATA_KEY, v as RendererEventHandler, x as RendererEventRegistry, w as RendererEventSubscription, c as RootInjector, t as createRendererEventMessage, g as getGuardForController, e as getGuardForControllerAction, j as getRouteMetadata, i as inject, u as isRendererEventMessage } from './index-5OkVPHfI.mjs';
3
+
1
4
  /**
2
5
  * @copyright 2025 NoxFly
3
6
  * @license MIT
4
7
  * @author NoxFly
5
8
  */
6
- interface Type<T> extends Function {
7
- new (...args: any[]): T;
8
- }
9
- /**
10
- * Represents a generic type that can be either a value or a promise resolving to that value.
11
- */
12
- type MaybeAsync<T> = T | Promise<T>;
13
-
14
-
15
- /**
16
- * Represents a lifetime of a binding in the dependency injection system.
17
- * It can be one of the following:
18
- * - 'singleton': The instance is created once and shared across the application.
19
- * - 'scope': The instance is created once per scope (e.g., per request).
20
- * - 'transient': A new instance is created every time it is requested.
21
- */
22
- type Lifetime = 'singleton' | 'scope' | 'transient';
23
- /**
24
- * Represents a binding in the dependency injection system.
25
- * It contains the lifetime of the binding, the implementation type, and optionally an instance.
26
- */
27
- interface IBinding {
28
- lifetime: Lifetime;
29
- implementation: Type<unknown>;
30
- instance?: InstanceType<Type<unknown>>;
31
- }
32
- /**
33
- * AppInjector is the root dependency injection container.
34
- * It is used to register and resolve dependencies in the application.
35
- * It supports different lifetimes for dependencies:
36
- * This should not be manually instantiated, outside of the framework.
37
- * Use the `RootInjector` instance instead.
38
- */
39
- declare class AppInjector {
40
- readonly name: string | null;
41
- bindings: Map<Type<unknown>, IBinding>;
42
- singletons: Map<Type<unknown>, unknown>;
43
- scoped: Map<Type<unknown>, unknown>;
44
- constructor(name?: string | null);
45
- /**
46
- * Typically used to create a dependency injection scope
47
- * at the "scope" level (i.e., per-request lifetime).
48
- *
49
- * SHOULD NOT BE USED by anything else than the framework itself.
50
- */
51
- createScope(): AppInjector;
52
- /**
53
- * Called when resolving a dependency,
54
- * i.e., retrieving the instance of a given class.
55
- */
56
- resolve<T extends Type<unknown>>(target: T): InstanceType<T>;
57
- /**
58
- *
59
- */
60
- private instantiate;
61
- }
62
- /**
63
- * Injects a type from the dependency injection system.
64
- * This function is used to retrieve an instance of a type that has been registered in the dependency injection system.
65
- * It is typically used in the constructor of a class to inject dependencies.
66
- * @param t - The type to inject.
67
- * @returns An instance of the type.
68
- * @throws If the type is not registered in the dependency injection system.
69
- */
70
- declare function inject<T>(t: Type<T>): T;
71
- declare const RootInjector: AppInjector;
72
-
73
-
74
- /**
75
- * IRouteMetadata interface defines the metadata for a route.
76
- * It includes the HTTP method, path, handler name, and guards associated with the route.
77
- * This metadata is used to register the route in the application.
78
- * This is the configuration that waits a route's decorator.
79
- */
80
- interface IRouteMetadata {
81
- method: HttpMethod;
82
- path: string;
83
- handler: string;
84
- guards: Type<IGuard>[];
85
- }
86
- /**
87
- * The different HTTP methods that can be used in the application.
88
- */
89
- type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
90
- /**
91
- * Gets the route metadata for a given target class.
92
- * This metadata includes the HTTP method, path, handler, and guards defined by the route decorators.
93
- * @see Get
94
- * @see Post
95
- * @see Put
96
- * @see Patch
97
- * @see Delete
98
- * @param target The target class to get the route metadata from.
99
- * @returns An array of route metadata if it exists, otherwise an empty array.
100
- */
101
- declare function getRouteMetadata(target: Type<unknown>): IRouteMetadata[];
102
- /**
103
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
104
- * that will be called when the route is matched.
105
- * This route will have to be called with the GET method.
106
- */
107
- declare const Get: (path: string) => MethodDecorator;
108
- /**
109
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
110
- * that will be called when the route is matched.
111
- * This route will have to be called with the POST method.
112
- */
113
- declare const Post: (path: string) => MethodDecorator;
114
- /**
115
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
116
- * that will be called when the route is matched.
117
- * This route will have to be called with the PUT method.
118
- */
119
- declare const Put: (path: string) => MethodDecorator;
120
- /**
121
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
122
- * that will be called when the route is matched.
123
- * This route will have to be called with the PATCH method.
124
- */
125
- declare const Patch: (path: string) => MethodDecorator;
126
- /**
127
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
128
- * that will be called when the route is matched.
129
- * This route will have to be called with the DELETE method.
130
- */
131
- declare const Delete: (path: string) => MethodDecorator;
132
- declare const ROUTE_METADATA_KEY: unique symbol;
133
-
134
-
135
- /**
136
- * The Request class represents an HTTP request in the Noxus framework.
137
- * It encapsulates the request data, including the event, ID, method, path, and body.
138
- * It also provides a context for dependency injection through the AppInjector.
139
- */
140
- declare class Request {
141
- readonly event: Electron.MessageEvent;
142
- readonly id: string;
143
- readonly method: HttpMethod;
144
- readonly path: string;
145
- readonly body: any;
146
- readonly context: AppInjector;
147
- readonly params: Record<string, string>;
148
- constructor(event: Electron.MessageEvent, id: string, method: HttpMethod, path: string, body: any);
149
- }
150
- /**
151
- * The IRequest interface defines the structure of a request object.
152
- * It includes properties for the sender ID, request ID, path, method, and an optional body.
153
- * This interface is used to standardize the request data across the application.
154
- */
155
- interface IRequest<T = any> {
156
- senderId: number;
157
- requestId: string;
158
- path: string;
159
- method: HttpMethod;
160
- body?: T;
161
- }
162
- /**
163
- * Creates a Request object from the IPC event data.
164
- * This function extracts the necessary information from the IPC event and constructs a Request instance.
165
- */
166
- interface IResponse<T = any> {
167
- requestId: string;
168
- status: number;
169
- body?: T;
170
- error?: string;
171
- stack?: string;
172
- }
173
-
174
-
175
- /**
176
- * IGuard interface defines a guard that can be used to protect routes.
177
- * It has a `canActivate` method that takes a request and returns a MaybeAsync boolean.
178
- * The `canActivate` method can return either a value or a Promise.
179
- * Use it on a class that should be registered as a guard in the application.
180
- * Guards can be used to protect routes or controller actions.
181
- * For example, you can use guards to check if the user is authenticated or has the right permissions.
182
- * You can use the `Authorize` decorator to register guards for a controller or a controller action.
183
- * @see Authorize
184
- */
185
- interface IGuard {
186
- canActivate(request: Request): MaybeAsync<boolean>;
187
- }
188
- /**
189
- * Can be used to protect the routes of a controller.
190
- * Can be used on a controller class or on a controller method.
191
- */
192
- declare function Authorize(...guardClasses: Type<IGuard>[]): MethodDecorator & ClassDecorator;
193
- /**
194
- * Gets the guards for a controller or a controller action.
195
- * @param controllerName The name of the controller to get the guards for.
196
- * @returns An array of guards for the controller.
197
- */
198
- declare function getGuardForController(controllerName: string): Type<IGuard>[];
199
- /**
200
- * Gets the guards for a controller action.
201
- * @param controllerName The name of the controller to get the guards for.
202
- * @param actionName The name of the action to get the guards for.
203
- * @returns An array of guards for the controller action.
204
- */
205
- declare function getGuardForControllerAction(controllerName: string, actionName: string): Type<IGuard>[];
206
-
207
9
 
208
10
  /**
209
11
  * NextFunction is a function that is called to continue the middleware chain.
@@ -291,6 +93,10 @@ declare class Router {
291
93
  * @param channelSenderId - The ID of the sender channel to shut down.
292
94
  */
293
95
  handle(request: Request): Promise<IResponse>;
96
+ private handleAtomic;
97
+ private handleBatch;
98
+ private normalizeBatchPayload;
99
+ private normalizeBatchItem;
294
100
  /**
295
101
  * Finds the route definition for a given request.
296
102
  * This method searches the routing tree for a matching route based on the request's path and method.
@@ -354,6 +160,16 @@ declare class Router {
354
160
  private extractParams;
355
161
  }
356
162
 
163
+ declare class NoxSocket {
164
+ private readonly messagePorts;
165
+ register(senderId: number, channel: Electron.MessageChannelMain): void;
166
+ get(senderId: number): Electron.MessageChannelMain | undefined;
167
+ unregister(senderId: number): void;
168
+ getSenderIds(): number[];
169
+ emit<TPayload = unknown>(eventName: string, payload?: TPayload, targetSenderIds?: number[]): number;
170
+ emitToRenderer<TPayload = unknown>(senderId: number, eventName: string, payload?: TPayload): boolean;
171
+ }
172
+
357
173
 
358
174
  /**
359
175
  * The application service should implement this interface, as
@@ -371,9 +187,10 @@ interface IApp {
371
187
  */
372
188
  declare class NoxApp {
373
189
  private readonly router;
374
- private readonly messagePorts;
190
+ private readonly socket;
375
191
  private app;
376
- constructor(router: Router);
192
+ private readonly onRendererMessage;
193
+ constructor(router: Router, socket: NoxSocket);
377
194
  /**
378
195
  * Initializes the NoxApp instance.
379
196
  * This method sets up the IPC communication, registers event listeners,
@@ -387,11 +204,6 @@ declare class NoxApp {
387
204
  * to the renderer process using the MessageChannel.
388
205
  */
389
206
  private giveTheRendererAPort;
390
- /**
391
- * Electron specific message handling.
392
- * Replaces HTTP calls by using Electron's IPC mechanism.
393
- */
394
- private onRendererMessage;
395
207
  /**
396
208
  * MacOS specific behavior.
397
209
  */
@@ -650,4 +462,4 @@ declare namespace Logger {
650
462
  };
651
463
  }
652
464
 
653
- export { AppInjector, Authorize, BadGatewayException, BadRequestException, CONTROLLER_METADATA_KEY, ConflictException, Controller, type ControllerAction, Delete, ForbiddenException, GatewayTimeoutException, Get, type HttpMethod, HttpVersionNotSupportedException, type IApp, type IBinding, type IControllerMetadata, type IGuard, type IMiddleware, type IModuleMetadata, INJECTABLE_METADATA_KEY, type IRequest, type IResponse, type IRouteDefinition, type IRouteMetadata, Injectable, InsufficientStorageException, InternalServerException, type Lifetime, type LogLevel, Logger, LoopDetectedException, MODULE_METADATA_KEY, type MaybeAsync, MethodNotAllowedException, Module, NetworkAuthenticationRequiredException, NetworkConnectTimeoutException, type NextFunction, NotAcceptableException, NotExtendedException, NotFoundException, NotImplementedException, NoxApp, Patch, PaymentRequiredException, Post, Put, ROUTE_METADATA_KEY, Request, RequestTimeoutException, ResponseException, RootInjector, Router, ServiceUnavailableException, TooManyRequestsException, type Type, UnauthorizedException, UpgradeRequiredException, UseMiddlewares, VariantAlsoNegotiatesException, bootstrapApplication, getControllerMetadata, getGuardForController, getGuardForControllerAction, getInjectableMetadata, getMiddlewaresForController, getMiddlewaresForControllerAction, getModuleMetadata, getRouteMetadata, inject };
465
+ export { BadGatewayException, BadRequestException, CONTROLLER_METADATA_KEY, ConflictException, Controller, type ControllerAction, ForbiddenException, GatewayTimeoutException, HttpVersionNotSupportedException, type IApp, type IControllerMetadata, IGuard, type IMiddleware, type IModuleMetadata, INJECTABLE_METADATA_KEY, IResponse, type IRouteDefinition, Injectable, InsufficientStorageException, InternalServerException, Lifetime, type LogLevel, Logger, LoopDetectedException, MODULE_METADATA_KEY, MaybeAsync, MethodNotAllowedException, Module, NetworkAuthenticationRequiredException, NetworkConnectTimeoutException, type NextFunction, NotAcceptableException, NotExtendedException, NotFoundException, NotImplementedException, NoxApp, NoxSocket, PaymentRequiredException, Request, RequestTimeoutException, ResponseException, Router, ServiceUnavailableException, TooManyRequestsException, Type, UnauthorizedException, UpgradeRequiredException, UseMiddlewares, VariantAlsoNegotiatesException, bootstrapApplication, getControllerMetadata, getInjectableMetadata, getMiddlewaresForController, getMiddlewaresForControllerAction, getModuleMetadata };
@@ -1,209 +1,11 @@
1
+ import { R as Request, I as IResponse, M as MaybeAsync, T as Type, a as IGuard, L as Lifetime } from './index-5OkVPHfI.js';
2
+ export { A as AppInjector, h as AtomicHttpMethod, d as Authorize, D as Delete, G as Get, H as HttpMethod, o as IBatchRequestItem, p as IBatchRequestPayload, q as IBatchResponsePayload, b as IBinding, s as IRendererEventMessage, n as IRequest, f as IRouteMetadata, l as Patch, P as Post, k as Put, r as RENDERER_EVENT_TYPE, m as ROUTE_METADATA_KEY, v as RendererEventHandler, x as RendererEventRegistry, w as RendererEventSubscription, c as RootInjector, t as createRendererEventMessage, g as getGuardForController, e as getGuardForControllerAction, j as getRouteMetadata, i as inject, u as isRendererEventMessage } from './index-5OkVPHfI.js';
3
+
1
4
  /**
2
5
  * @copyright 2025 NoxFly
3
6
  * @license MIT
4
7
  * @author NoxFly
5
8
  */
6
- interface Type<T> extends Function {
7
- new (...args: any[]): T;
8
- }
9
- /**
10
- * Represents a generic type that can be either a value or a promise resolving to that value.
11
- */
12
- type MaybeAsync<T> = T | Promise<T>;
13
-
14
-
15
- /**
16
- * Represents a lifetime of a binding in the dependency injection system.
17
- * It can be one of the following:
18
- * - 'singleton': The instance is created once and shared across the application.
19
- * - 'scope': The instance is created once per scope (e.g., per request).
20
- * - 'transient': A new instance is created every time it is requested.
21
- */
22
- type Lifetime = 'singleton' | 'scope' | 'transient';
23
- /**
24
- * Represents a binding in the dependency injection system.
25
- * It contains the lifetime of the binding, the implementation type, and optionally an instance.
26
- */
27
- interface IBinding {
28
- lifetime: Lifetime;
29
- implementation: Type<unknown>;
30
- instance?: InstanceType<Type<unknown>>;
31
- }
32
- /**
33
- * AppInjector is the root dependency injection container.
34
- * It is used to register and resolve dependencies in the application.
35
- * It supports different lifetimes for dependencies:
36
- * This should not be manually instantiated, outside of the framework.
37
- * Use the `RootInjector` instance instead.
38
- */
39
- declare class AppInjector {
40
- readonly name: string | null;
41
- bindings: Map<Type<unknown>, IBinding>;
42
- singletons: Map<Type<unknown>, unknown>;
43
- scoped: Map<Type<unknown>, unknown>;
44
- constructor(name?: string | null);
45
- /**
46
- * Typically used to create a dependency injection scope
47
- * at the "scope" level (i.e., per-request lifetime).
48
- *
49
- * SHOULD NOT BE USED by anything else than the framework itself.
50
- */
51
- createScope(): AppInjector;
52
- /**
53
- * Called when resolving a dependency,
54
- * i.e., retrieving the instance of a given class.
55
- */
56
- resolve<T extends Type<unknown>>(target: T): InstanceType<T>;
57
- /**
58
- *
59
- */
60
- private instantiate;
61
- }
62
- /**
63
- * Injects a type from the dependency injection system.
64
- * This function is used to retrieve an instance of a type that has been registered in the dependency injection system.
65
- * It is typically used in the constructor of a class to inject dependencies.
66
- * @param t - The type to inject.
67
- * @returns An instance of the type.
68
- * @throws If the type is not registered in the dependency injection system.
69
- */
70
- declare function inject<T>(t: Type<T>): T;
71
- declare const RootInjector: AppInjector;
72
-
73
-
74
- /**
75
- * IRouteMetadata interface defines the metadata for a route.
76
- * It includes the HTTP method, path, handler name, and guards associated with the route.
77
- * This metadata is used to register the route in the application.
78
- * This is the configuration that waits a route's decorator.
79
- */
80
- interface IRouteMetadata {
81
- method: HttpMethod;
82
- path: string;
83
- handler: string;
84
- guards: Type<IGuard>[];
85
- }
86
- /**
87
- * The different HTTP methods that can be used in the application.
88
- */
89
- type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
90
- /**
91
- * Gets the route metadata for a given target class.
92
- * This metadata includes the HTTP method, path, handler, and guards defined by the route decorators.
93
- * @see Get
94
- * @see Post
95
- * @see Put
96
- * @see Patch
97
- * @see Delete
98
- * @param target The target class to get the route metadata from.
99
- * @returns An array of route metadata if it exists, otherwise an empty array.
100
- */
101
- declare function getRouteMetadata(target: Type<unknown>): IRouteMetadata[];
102
- /**
103
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
104
- * that will be called when the route is matched.
105
- * This route will have to be called with the GET method.
106
- */
107
- declare const Get: (path: string) => MethodDecorator;
108
- /**
109
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
110
- * that will be called when the route is matched.
111
- * This route will have to be called with the POST method.
112
- */
113
- declare const Post: (path: string) => MethodDecorator;
114
- /**
115
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
116
- * that will be called when the route is matched.
117
- * This route will have to be called with the PUT method.
118
- */
119
- declare const Put: (path: string) => MethodDecorator;
120
- /**
121
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
122
- * that will be called when the route is matched.
123
- * This route will have to be called with the PATCH method.
124
- */
125
- declare const Patch: (path: string) => MethodDecorator;
126
- /**
127
- * Route decorator that defines a leaf in the routing tree, attaching it to a controller method
128
- * that will be called when the route is matched.
129
- * This route will have to be called with the DELETE method.
130
- */
131
- declare const Delete: (path: string) => MethodDecorator;
132
- declare const ROUTE_METADATA_KEY: unique symbol;
133
-
134
-
135
- /**
136
- * The Request class represents an HTTP request in the Noxus framework.
137
- * It encapsulates the request data, including the event, ID, method, path, and body.
138
- * It also provides a context for dependency injection through the AppInjector.
139
- */
140
- declare class Request {
141
- readonly event: Electron.MessageEvent;
142
- readonly id: string;
143
- readonly method: HttpMethod;
144
- readonly path: string;
145
- readonly body: any;
146
- readonly context: AppInjector;
147
- readonly params: Record<string, string>;
148
- constructor(event: Electron.MessageEvent, id: string, method: HttpMethod, path: string, body: any);
149
- }
150
- /**
151
- * The IRequest interface defines the structure of a request object.
152
- * It includes properties for the sender ID, request ID, path, method, and an optional body.
153
- * This interface is used to standardize the request data across the application.
154
- */
155
- interface IRequest<T = any> {
156
- senderId: number;
157
- requestId: string;
158
- path: string;
159
- method: HttpMethod;
160
- body?: T;
161
- }
162
- /**
163
- * Creates a Request object from the IPC event data.
164
- * This function extracts the necessary information from the IPC event and constructs a Request instance.
165
- */
166
- interface IResponse<T = any> {
167
- requestId: string;
168
- status: number;
169
- body?: T;
170
- error?: string;
171
- stack?: string;
172
- }
173
-
174
-
175
- /**
176
- * IGuard interface defines a guard that can be used to protect routes.
177
- * It has a `canActivate` method that takes a request and returns a MaybeAsync boolean.
178
- * The `canActivate` method can return either a value or a Promise.
179
- * Use it on a class that should be registered as a guard in the application.
180
- * Guards can be used to protect routes or controller actions.
181
- * For example, you can use guards to check if the user is authenticated or has the right permissions.
182
- * You can use the `Authorize` decorator to register guards for a controller or a controller action.
183
- * @see Authorize
184
- */
185
- interface IGuard {
186
- canActivate(request: Request): MaybeAsync<boolean>;
187
- }
188
- /**
189
- * Can be used to protect the routes of a controller.
190
- * Can be used on a controller class or on a controller method.
191
- */
192
- declare function Authorize(...guardClasses: Type<IGuard>[]): MethodDecorator & ClassDecorator;
193
- /**
194
- * Gets the guards for a controller or a controller action.
195
- * @param controllerName The name of the controller to get the guards for.
196
- * @returns An array of guards for the controller.
197
- */
198
- declare function getGuardForController(controllerName: string): Type<IGuard>[];
199
- /**
200
- * Gets the guards for a controller action.
201
- * @param controllerName The name of the controller to get the guards for.
202
- * @param actionName The name of the action to get the guards for.
203
- * @returns An array of guards for the controller action.
204
- */
205
- declare function getGuardForControllerAction(controllerName: string, actionName: string): Type<IGuard>[];
206
-
207
9
 
208
10
  /**
209
11
  * NextFunction is a function that is called to continue the middleware chain.
@@ -291,6 +93,10 @@ declare class Router {
291
93
  * @param channelSenderId - The ID of the sender channel to shut down.
292
94
  */
293
95
  handle(request: Request): Promise<IResponse>;
96
+ private handleAtomic;
97
+ private handleBatch;
98
+ private normalizeBatchPayload;
99
+ private normalizeBatchItem;
294
100
  /**
295
101
  * Finds the route definition for a given request.
296
102
  * This method searches the routing tree for a matching route based on the request's path and method.
@@ -354,6 +160,16 @@ declare class Router {
354
160
  private extractParams;
355
161
  }
356
162
 
163
+ declare class NoxSocket {
164
+ private readonly messagePorts;
165
+ register(senderId: number, channel: Electron.MessageChannelMain): void;
166
+ get(senderId: number): Electron.MessageChannelMain | undefined;
167
+ unregister(senderId: number): void;
168
+ getSenderIds(): number[];
169
+ emit<TPayload = unknown>(eventName: string, payload?: TPayload, targetSenderIds?: number[]): number;
170
+ emitToRenderer<TPayload = unknown>(senderId: number, eventName: string, payload?: TPayload): boolean;
171
+ }
172
+
357
173
 
358
174
  /**
359
175
  * The application service should implement this interface, as
@@ -371,9 +187,10 @@ interface IApp {
371
187
  */
372
188
  declare class NoxApp {
373
189
  private readonly router;
374
- private readonly messagePorts;
190
+ private readonly socket;
375
191
  private app;
376
- constructor(router: Router);
192
+ private readonly onRendererMessage;
193
+ constructor(router: Router, socket: NoxSocket);
377
194
  /**
378
195
  * Initializes the NoxApp instance.
379
196
  * This method sets up the IPC communication, registers event listeners,
@@ -387,11 +204,6 @@ declare class NoxApp {
387
204
  * to the renderer process using the MessageChannel.
388
205
  */
389
206
  private giveTheRendererAPort;
390
- /**
391
- * Electron specific message handling.
392
- * Replaces HTTP calls by using Electron's IPC mechanism.
393
- */
394
- private onRendererMessage;
395
207
  /**
396
208
  * MacOS specific behavior.
397
209
  */
@@ -650,4 +462,4 @@ declare namespace Logger {
650
462
  };
651
463
  }
652
464
 
653
- export { AppInjector, Authorize, BadGatewayException, BadRequestException, CONTROLLER_METADATA_KEY, ConflictException, Controller, type ControllerAction, Delete, ForbiddenException, GatewayTimeoutException, Get, type HttpMethod, HttpVersionNotSupportedException, type IApp, type IBinding, type IControllerMetadata, type IGuard, type IMiddleware, type IModuleMetadata, INJECTABLE_METADATA_KEY, type IRequest, type IResponse, type IRouteDefinition, type IRouteMetadata, Injectable, InsufficientStorageException, InternalServerException, type Lifetime, type LogLevel, Logger, LoopDetectedException, MODULE_METADATA_KEY, type MaybeAsync, MethodNotAllowedException, Module, NetworkAuthenticationRequiredException, NetworkConnectTimeoutException, type NextFunction, NotAcceptableException, NotExtendedException, NotFoundException, NotImplementedException, NoxApp, Patch, PaymentRequiredException, Post, Put, ROUTE_METADATA_KEY, Request, RequestTimeoutException, ResponseException, RootInjector, Router, ServiceUnavailableException, TooManyRequestsException, type Type, UnauthorizedException, UpgradeRequiredException, UseMiddlewares, VariantAlsoNegotiatesException, bootstrapApplication, getControllerMetadata, getGuardForController, getGuardForControllerAction, getInjectableMetadata, getMiddlewaresForController, getMiddlewaresForControllerAction, getModuleMetadata, getRouteMetadata, inject };
465
+ export { BadGatewayException, BadRequestException, CONTROLLER_METADATA_KEY, ConflictException, Controller, type ControllerAction, ForbiddenException, GatewayTimeoutException, HttpVersionNotSupportedException, type IApp, type IControllerMetadata, IGuard, type IMiddleware, type IModuleMetadata, INJECTABLE_METADATA_KEY, IResponse, type IRouteDefinition, Injectable, InsufficientStorageException, InternalServerException, Lifetime, type LogLevel, Logger, LoopDetectedException, MODULE_METADATA_KEY, MaybeAsync, MethodNotAllowedException, Module, NetworkAuthenticationRequiredException, NetworkConnectTimeoutException, type NextFunction, NotAcceptableException, NotExtendedException, NotFoundException, NotImplementedException, NoxApp, NoxSocket, PaymentRequiredException, Request, RequestTimeoutException, ResponseException, Router, ServiceUnavailableException, TooManyRequestsException, Type, UnauthorizedException, UpgradeRequiredException, UseMiddlewares, VariantAlsoNegotiatesException, bootstrapApplication, getControllerMetadata, getInjectableMetadata, getMiddlewaresForController, getMiddlewaresForControllerAction, getModuleMetadata };