import type { Server } from 'node:http'; import type { Express, Request } from 'express'; import type { TFunction } from 'i18next'; import Base from '../../modules/Base.ts'; import type { IApp } from '../../server.ts'; export interface FrameworkRequest extends Request { appInfo: { app: IApp; ip?: string | undefined; request: Record; query: Record; i18n?: { t: TFunction; language: string; }; }; } /** * HTTP server based on Express */ declare class HttpServer extends Base { express: Express; httpServer: Server; constructor(app: IApp); /** * Add handle for 404 error */ add404Page(): void; static get loggerGroup(): string; /** * Stop http server (mostly for unit testing) */ shutdown(): void; } export default HttpServer;