import type { IncomingMessage } from 'node:http'; import { BlockList } from 'node:net'; import type { NextFunction, Response } from 'express'; import type { IApp } from '../../../server.ts'; import type { FrameworkRequest } from '../HttpServer.ts'; import AbstractMiddleware from './AbstractMiddleware.ts'; declare class IpDetector extends AbstractMiddleware { static get description(): string; blockList: BlockList; constructor(app: IApp, params?: Record); getIpAdressFromIncomingMessage(req: IncomingMessage): string | undefined; middleware(req: FrameworkRequest, _res: Response, next: NextFunction): Promise; } export default IpDetector;