egg
Version:
A web application framework for Node.js
26 lines • 951 B
TypeScript
import { AgentWorkerLoader } from "./loader/AgentWorkerLoader.js";
import "./loader/index.js";
import { EggApplicationCore, EggApplicationCoreOptions } from "./egg.js";
//#region src/lib/agent.d.ts
/**
* Singleton instance in Agent Worker, extend {@link EggApplicationCore}
* @augments EggApplicationCore
*/
export declare class Agent extends EggApplicationCore {
#private;
/**
* @class
* @param {Object} options - see {@link EggApplicationCore}
*/
constructor(options?: Omit<EggApplicationCoreOptions, "type">);
/**
* Start the keepalive timer that prevents the agent process from exiting
* when it has no pending I/O. Called from configDidLoad so that the timer
* is not created during snapshot build (configDidLoad is skipped in snapshot mode).
*/
protected startKeepAlive(): void;
protected override customEggLoader(): typeof AgentWorkerLoader;
_wrapMessenger(): void;
close(): Promise<void>;
}
//#endregion