@eggjs/core 7.0.0-beta.34 → 7.0.0-beta.36

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.
package/dist/egg.d.ts CHANGED
@@ -1,282 +1,284 @@
1
- import { Application as KoaApplication, Context as KoaContext, Request as KoaRequest, Response as KoaResponse, type MiddlewareFunc as KoaMiddlewareFunc, type Next } from '@eggjs/koa';
2
- import { EggConsoleLogger, type Logger } from 'egg-logger';
3
- import { EggRouter as Router, type RegisterOptions, type ResourcesController } from '@eggjs/router';
4
- import type { ReadyFunctionArg } from 'get-ready';
5
- import { BaseContextClass } from './base_context_class.ts';
6
- import { Timing } from './utils/timing.ts';
7
- import { Lifecycle } from './lifecycle.ts';
8
- import { EggLoader } from './loader/egg_loader.ts';
9
- import { type Fun } from './utils/index.ts';
10
- import type { EggAppConfig } from './types.ts';
11
- import { type SingletonCreateMethod } from './singleton.ts';
12
- export declare const EGG_LOADER: symbol;
13
- export interface EggCoreOptions {
14
- baseDir: string;
15
- type: 'application' | 'agent';
16
- plugins?: any;
17
- serverScope?: string;
18
- env?: string;
1
+ import { Fun } from "./utils/index.js";
2
+ import { BaseContextClass } from "./base_context_class.js";
3
+ import { Timing } from "./utils/timing.js";
4
+ import { Lifecycle } from "./lifecycle.js";
5
+ import { EggAppConfig } from "./types.js";
6
+ import { EggLoader } from "./loader/egg_loader.js";
7
+ import { SingletonCreateMethod } from "./singleton.js";
8
+ import { Application as KoaApplication, Context as KoaContext, MiddlewareFunc as KoaMiddlewareFunc, Next, Request as KoaRequest, Response as KoaResponse } from "@eggjs/koa";
9
+ import { EggRouter as Router, RegisterOptions, ResourcesController } from "@eggjs/router";
10
+ import { EggConsoleLogger, Logger } from "egg-logger";
11
+ import { ReadyFunctionArg } from "get-ready";
12
+
13
+ //#region src/egg.d.ts
14
+ declare const EGG_LOADER: symbol;
15
+ interface EggCoreOptions {
16
+ baseDir: string;
17
+ type: "application" | "agent";
18
+ plugins?: any;
19
+ serverScope?: string;
20
+ env?: string;
19
21
  }
20
- export type EggCoreInitOptions = Partial<EggCoreOptions>;
21
- export { KoaRequest, KoaResponse, KoaContext, KoaApplication, Router };
22
- export type { Next, KoaMiddlewareFunc };
23
- export declare class Request extends KoaRequest {
24
- ctx: Context;
25
- app: EggCore;
26
- response: Response;
22
+ type EggCoreInitOptions = Partial<EggCoreOptions>;
23
+ declare class Request$1 extends KoaRequest {
24
+ ctx: Context$1;
25
+ app: EggCore;
26
+ response: Response$1;
27
27
  }
28
- export declare class Response extends KoaResponse {
29
- app: EggCore;
30
- request: Request;
28
+ declare class Response$1 extends KoaResponse {
29
+ app: EggCore;
30
+ request: Request$1;
31
31
  }
32
- export declare class Context extends KoaContext {
33
- app: EggCore;
34
- request: Request;
35
- response: Response;
36
- service: Record<string, any>;
37
- /**
38
- * Returns map of URL parameters for given `path` and `paramNames`.
39
- * @example
40
- * ##### ctx.params.id {string}
41
- *
42
- * `GET /api/users/1` => `'1'`
43
- *
44
- * ##### ctx.params.per_page {string}
45
- *
46
- * The number of every page, `GET /api/users?per_page=20` => `20`
47
- */
48
- params?: Record<string, string>;
49
- /**
50
- * Returns array of router regexp url path captures.
51
- */
52
- captures?: string[];
53
- /**
54
- * Returns the name of the matched router.
55
- */
56
- routerName?: string;
57
- /**
58
- * Returns the path of the matched router.
59
- */
60
- routerPath?: string | RegExp;
32
+ declare class Context$1 extends KoaContext {
33
+ app: EggCore;
34
+ request: Request$1;
35
+ response: Response$1;
36
+ service: Record<string, any>;
37
+ /**
38
+ * Returns map of URL parameters for given `path` and `paramNames`.
39
+ * @example
40
+ * ##### ctx.params.id {string}
41
+ *
42
+ * `GET /api/users/1` => `'1'`
43
+ *
44
+ * ##### ctx.params.per_page {string}
45
+ *
46
+ * The number of every page, `GET /api/users?per_page=20` => `20`
47
+ */
48
+ params?: Record<string, string>;
49
+ /**
50
+ * Returns array of router regexp url path captures.
51
+ */
52
+ captures?: string[];
53
+ /**
54
+ * Returns the name of the matched router.
55
+ */
56
+ routerName?: string;
57
+ /**
58
+ * Returns the path of the matched router.
59
+ */
60
+ routerPath?: string | RegExp;
61
61
  }
62
- export type MiddlewareFunc<T extends KoaContext = Context> = KoaMiddlewareFunc<T>;
63
- export declare class EggCore extends KoaApplication {
64
- #private;
65
- options: EggCoreOptions;
66
- timing: Timing;
67
- console: EggConsoleLogger;
68
- BaseContextClass: typeof BaseContextClass;
69
- Controller: typeof BaseContextClass;
70
- Service: typeof BaseContextClass;
71
- Helper?: typeof BaseContextClass;
72
- lifecycle: Lifecycle;
73
- loader: EggLoader;
74
- /** auto inject on loadService() */
75
- readonly serviceClasses: Record<string, any>;
76
- /** auto inject on loadController() */
77
- readonly controller: Record<string, any>;
78
- /** auto inject on loadMiddleware() */
79
- readonly middlewares: Record<string, (opt: unknown, app: EggCore) => MiddlewareFunc>;
80
- /**
81
- * @class
82
- * @param {Object} options - options
83
- * @param {String} [options.baseDir] - the directory of application
84
- * @param {String} [options.type] - whether it's running in app worker or agent worker
85
- * @param {Object} [options.plugins] - custom plugins
86
- * @since 1.0.0
87
- */
88
- constructor(options?: EggCoreInitOptions);
89
- get logger(): Logger;
90
- get coreLogger(): Logger;
91
- /**
92
- * create a singleton instance
93
- * @param {String} name - unique name for singleton
94
- * @param {Function|AsyncFunction} create - method will be invoked when singleton instance create
95
- */
96
- addSingleton(name: string, create: SingletonCreateMethod): void;
97
- /**
98
- * override koa's app.use, support generator function
99
- * @since 1.0.0
100
- */
101
- use<T extends KoaContext = Context>(fn: MiddlewareFunc<T>): this;
102
- /**
103
- * Whether `application` or `agent`
104
- * @member {String}
105
- * @since 1.0.0
106
- */
107
- get type(): 'application' | 'agent';
108
- /**
109
- * The current directory of application
110
- * @member {String}
111
- * @see {@link AppInfo#baseDir}
112
- * @since 1.0.0
113
- */
114
- get baseDir(): string;
115
- /**
116
- * Alias to {@link https://npmjs.com/package/depd}
117
- * @member {Function}
118
- * @since 1.0.0
119
- */
120
- get deprecate(): (message: string) => void;
121
- /**
122
- * The name of application
123
- * @member {String}
124
- * @see {@link AppInfo#name}
125
- * @since 1.0.0
126
- */
127
- get name(): string;
128
- /**
129
- * Retrieve enabled plugins
130
- * @member {Object}
131
- * @since 1.0.0
132
- */
133
- get plugins(): Record<string, any>;
134
- /**
135
- * The configuration of application
136
- * @member {Config}
137
- * @since 1.0.0
138
- */
139
- get config(): EggAppConfig;
140
- /**
141
- * Execute scope after loaded and before app start.
142
- *
143
- * Notice:
144
- * This method is now NOT recommended and regarded as a deprecated one,
145
- * For plugin development, we should use `didLoad` instead.
146
- * For application development, we should use `willReady` instead.
147
- *
148
- * @see https://eggjs.org/en/advanced/loader.html#beforestart
149
- *
150
- * @param {Function} scope function will execute before app start
151
- * @param {string} [name] scope name, default is empty string
152
- */
153
- beforeStart(scope: Fun, name?: string): void;
154
- /**
155
- * register an callback function that will be invoked when application is ready.
156
- * @see https://github.com/node-modules/get-ready
157
- * @since 1.0.0
158
- * @example
159
- * const app = new Application(...);
160
- * app.ready(err => {
161
- * if (err) throw err;
162
- * console.log('done');
163
- * });
164
- */
165
- ready(): Promise<void>;
166
- ready(flagOrFunction: ReadyFunctionArg): void;
167
- /**
168
- * If a client starts asynchronously, you can register `readyCallback`,
169
- * then the application will wait for the callback to ready
170
- *
171
- * It will log when the callback is not invoked after 10s
172
- *
173
- * Recommend to use {@link EggCore#beforeStart}
174
- * @since 1.0.0
175
- *
176
- * @param {String} name - readyCallback task name
177
- * @param {object} opts -
178
- * - {Number} [timeout=10000] - emit `ready_timeout` when it doesn't finish but reach the timeout
179
- * - {Boolean} [isWeakDep=false] - whether it's a weak dependency
180
- * @returns {Function} - a callback
181
- * @example
182
- * const done = app.readyCallback('mysql');
183
- * mysql.ready(done);
184
- */
185
- readyCallback(name: string, opts: object): (...args: unknown[]) => void;
186
- /**
187
- * Register a function that will be called when app close.
188
- *
189
- * Notice:
190
- * This method is now NOT recommended directly used,
191
- * Developers SHOULDN'T use app.beforeClose directly now,
192
- * but in the form of class to implement beforeClose instead.
193
- *
194
- * @see https://eggjs.org/en/advanced/loader.html#beforeclose
195
- *
196
- * @param {Function} fn - the function that can be generator function or async function.
197
- */
198
- beforeClose(fn: Fun, name?: string): void;
199
- /**
200
- * Close all, it will close
201
- * - callbacks registered by beforeClose
202
- * - emit `close` event
203
- * - remove add listeners
204
- *
205
- * If error is thrown when it's closing, the promise will reject.
206
- * It will also reject after following call.
207
- * @returns {Promise} promise
208
- * @since 1.0.0
209
- */
210
- close(): Promise<void>;
211
- /**
212
- * get router
213
- * @member {Router} EggCore#router
214
- * @since 1.0.0
215
- */
216
- get router(): Router;
217
- /**
218
- * Alias to {@link Router#url}
219
- * @param {String} name - Router name
220
- * @param {Object} params - more parameters
221
- * @returns {String} url
222
- */
223
- url(name: string, params?: Parameters<Router['url']>[1]): string;
224
- head(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
225
- head(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
226
- get(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
227
- get(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
228
- put(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
229
- put(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
230
- patch(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
231
- patch(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
232
- post(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
233
- post(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
234
- delete(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
235
- delete(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
236
- del(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
237
- del(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
238
- all(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
239
- all(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
240
- resources(prefix: string, controller: string | ResourcesController): EggCore;
241
- resources(prefix: string, middleware: MiddlewareFunc, controller: string | ResourcesController): EggCore;
242
- resources(name: string, prefix: string, controller: string | ResourcesController): EggCore;
243
- resources(name: string, prefix: string, middleware: MiddlewareFunc, controller: string | ResourcesController): EggCore;
244
- redirect(source: string, destination: string, status?: number): this;
245
- register(path: string | RegExp | (string | RegExp)[], methods: string[], middleware: MiddlewareFunc | MiddlewareFunc[], opts?: RegisterOptions): this;
246
- /**
247
- * Override this method to customize the loader
248
- *
249
- * ```ts
250
- * // src/ExampleApplication.ts
251
- * import { Application } from 'egg';
252
- *
253
- * class ExampleApplication extends Application {
254
- * protected override customEggLoader() {
255
- * return ExampleLoader;
256
- * }
257
- * }
258
- * ```
259
- *
260
- * @since 4.0.0
261
- * @returns {typeof EggLoader}
262
- */
263
- protected customEggLoader(): typeof EggLoader;
264
- /**
265
- * Override this method to customize the egg paths
266
- *
267
- * ```ts
268
- * // src/ExampleApplication.ts
269
- * import { Application } from 'egg';
270
- *
271
- * class ExampleApplication extends Application {
272
- * protected override customEggPaths() {
273
- * return [path.dirname(import.meta.dirname), ...super.customEggPaths()];
274
- * }
275
- * }
276
- * ```
277
- *
278
- * @since 4.0.0
279
- * @returns {string[]}
280
- */
281
- protected customEggPaths(): string[];
62
+ type MiddlewareFunc<T extends KoaContext = Context$1> = KoaMiddlewareFunc<T>;
63
+ declare class EggCore extends KoaApplication {
64
+ #private;
65
+ options: EggCoreOptions;
66
+ timing: Timing;
67
+ console: EggConsoleLogger;
68
+ BaseContextClass: typeof BaseContextClass;
69
+ Controller: typeof BaseContextClass;
70
+ Service: typeof BaseContextClass;
71
+ Helper?: typeof BaseContextClass;
72
+ lifecycle: Lifecycle;
73
+ loader: EggLoader;
74
+ /** auto inject on loadService() */
75
+ readonly serviceClasses: Record<string, any>;
76
+ /** auto inject on loadController() */
77
+ readonly controller: Record<string, any>;
78
+ /** auto inject on loadMiddleware() */
79
+ readonly middlewares: Record<string, (opt: unknown, app: EggCore) => MiddlewareFunc>;
80
+ /**
81
+ * @class
82
+ * @param {Object} options - options
83
+ * @param {String} [options.baseDir] - the directory of application
84
+ * @param {String} [options.type] - whether it's running in app worker or agent worker
85
+ * @param {Object} [options.plugins] - custom plugins
86
+ * @since 1.0.0
87
+ */
88
+ constructor(options?: EggCoreInitOptions);
89
+ get logger(): Logger;
90
+ get coreLogger(): Logger;
91
+ /**
92
+ * create a singleton instance
93
+ * @param {String} name - unique name for singleton
94
+ * @param {Function|AsyncFunction} create - method will be invoked when singleton instance create
95
+ */
96
+ addSingleton(name: string, create: SingletonCreateMethod): void;
97
+ /**
98
+ * override koa's app.use, support generator function
99
+ * @since 1.0.0
100
+ */
101
+ use<T extends KoaContext = Context$1>(fn: MiddlewareFunc<T>): this;
102
+ /**
103
+ * Whether `application` or `agent`
104
+ * @member {String}
105
+ * @since 1.0.0
106
+ */
107
+ get type(): "application" | "agent";
108
+ /**
109
+ * The current directory of application
110
+ * @member {String}
111
+ * @see {@link AppInfo#baseDir}
112
+ * @since 1.0.0
113
+ */
114
+ get baseDir(): string;
115
+ /**
116
+ * Alias to {@link https://npmjs.com/package/depd}
117
+ * @member {Function}
118
+ * @since 1.0.0
119
+ */
120
+ get deprecate(): (message: string) => void;
121
+ /**
122
+ * The name of application
123
+ * @member {String}
124
+ * @see {@link AppInfo#name}
125
+ * @since 1.0.0
126
+ */
127
+ get name(): string;
128
+ /**
129
+ * Retrieve enabled plugins
130
+ * @member {Object}
131
+ * @since 1.0.0
132
+ */
133
+ get plugins(): Record<string, any>;
134
+ /**
135
+ * The configuration of application
136
+ * @member {Config}
137
+ * @since 1.0.0
138
+ */
139
+ get config(): EggAppConfig;
140
+ /**
141
+ * Execute scope after loaded and before app start.
142
+ *
143
+ * Notice:
144
+ * This method is now NOT recommended and regarded as a deprecated one,
145
+ * For plugin development, we should use `didLoad` instead.
146
+ * For application development, we should use `willReady` instead.
147
+ *
148
+ * @see https://eggjs.org/en/advanced/loader.html#beforestart
149
+ *
150
+ * @param {Function} scope function will execute before app start
151
+ * @param {string} [name] scope name, default is empty string
152
+ */
153
+ beforeStart(scope: Fun, name?: string): void;
154
+ /**
155
+ * register an callback function that will be invoked when application is ready.
156
+ * @see https://github.com/node-modules/get-ready
157
+ * @since 1.0.0
158
+ * @example
159
+ * const app = new Application(...);
160
+ * app.ready(err => {
161
+ * if (err) throw err;
162
+ * console.log('done');
163
+ * });
164
+ */
165
+ ready(): Promise<void>;
166
+ ready(flagOrFunction: ReadyFunctionArg): void;
167
+ /**
168
+ * If a client starts asynchronously, you can register `readyCallback`,
169
+ * then the application will wait for the callback to ready
170
+ *
171
+ * It will log when the callback is not invoked after 10s
172
+ *
173
+ * Recommend to use {@link EggCore#beforeStart}
174
+ * @since 1.0.0
175
+ *
176
+ * @param {String} name - readyCallback task name
177
+ * @param {object} opts -
178
+ * - {Number} [timeout=10000] - emit `ready_timeout` when it doesn't finish but reach the timeout
179
+ * - {Boolean} [isWeakDep=false] - whether it's a weak dependency
180
+ * @returns {Function} - a callback
181
+ * @example
182
+ * const done = app.readyCallback('mysql');
183
+ * mysql.ready(done);
184
+ */
185
+ readyCallback(name: string, opts: object): (...args: unknown[]) => void;
186
+ /**
187
+ * Register a function that will be called when app close.
188
+ *
189
+ * Notice:
190
+ * This method is now NOT recommended directly used,
191
+ * Developers SHOULDN'T use app.beforeClose directly now,
192
+ * but in the form of class to implement beforeClose instead.
193
+ *
194
+ * @see https://eggjs.org/en/advanced/loader.html#beforeclose
195
+ *
196
+ * @param {Function} fn - the function that can be generator function or async function.
197
+ */
198
+ beforeClose(fn: Fun, name?: string): void;
199
+ /**
200
+ * Close all, it will close
201
+ * - callbacks registered by beforeClose
202
+ * - emit `close` event
203
+ * - remove add listeners
204
+ *
205
+ * If error is thrown when it's closing, the promise will reject.
206
+ * It will also reject after following call.
207
+ * @returns {Promise} promise
208
+ * @since 1.0.0
209
+ */
210
+ close(): Promise<void>;
211
+ /**
212
+ * get router
213
+ * @member {Router} EggCore#router
214
+ * @since 1.0.0
215
+ */
216
+ get router(): Router;
217
+ /**
218
+ * Alias to {@link Router#url}
219
+ * @param {String} name - Router name
220
+ * @param {Object} params - more parameters
221
+ * @returns {String} url
222
+ */
223
+ url(name: string, params?: Parameters<Router["url"]>[1]): string;
224
+ head(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
225
+ head(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
226
+ get(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
227
+ get(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
228
+ put(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
229
+ put(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
230
+ patch(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
231
+ patch(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
232
+ post(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
233
+ post(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
234
+ delete(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
235
+ delete(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
236
+ del(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
237
+ del(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
238
+ all(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
239
+ all(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
240
+ resources(prefix: string, controller: string | ResourcesController): EggCore;
241
+ resources(prefix: string, middleware: MiddlewareFunc, controller: string | ResourcesController): EggCore;
242
+ resources(name: string, prefix: string, controller: string | ResourcesController): EggCore;
243
+ resources(name: string, prefix: string, middleware: MiddlewareFunc, controller: string | ResourcesController): EggCore;
244
+ redirect(source: string, destination: string, status?: number): this;
245
+ register(path: string | RegExp | (string | RegExp)[], methods: string[], middleware: MiddlewareFunc | MiddlewareFunc[], opts?: RegisterOptions): this;
246
+ /**
247
+ * Override this method to customize the loader
248
+ *
249
+ * ```ts
250
+ * // src/ExampleApplication.ts
251
+ * import { Application } from 'egg';
252
+ *
253
+ * class ExampleApplication extends Application {
254
+ * protected override customEggLoader() {
255
+ * return ExampleLoader;
256
+ * }
257
+ * }
258
+ * ```
259
+ *
260
+ * @since 4.0.0
261
+ * @returns {typeof EggLoader}
262
+ */
263
+ protected customEggLoader(): typeof EggLoader;
264
+ /**
265
+ * Override this method to customize the egg paths
266
+ *
267
+ * ```ts
268
+ * // src/ExampleApplication.ts
269
+ * import { Application } from 'egg';
270
+ *
271
+ * class ExampleApplication extends Application {
272
+ * protected override customEggPaths() {
273
+ * return [path.dirname(import.meta.dirname), ...super.customEggPaths()];
274
+ * }
275
+ * }
276
+ * ```
277
+ *
278
+ * @since 4.0.0
279
+ * @returns {string[]}
280
+ */
281
+ protected customEggPaths(): string[];
282
282
  }
283
+ //#endregion
284
+ export { Context$1 as Context, EGG_LOADER, EggCore, EggCoreInitOptions, EggCoreOptions, KoaApplication, KoaContext, type KoaMiddlewareFunc, KoaRequest, KoaResponse, MiddlewareFunc, type Next, Request$1 as Request, Response$1 as Response, Router };