import type { NextFunction, Request, Response } from "express"; export declare const LOOPBACK_HOST = "127.0.0.1"; export interface RequestOrigin { remoteAddress?: string; host?: string; origin?: string; } /** * True for a loopback connection whose Host names loopback (a DNS rebinding page * reaches the socket under its own hostname) and whose Origin, when the browser * sends one, is that same host (any other site or local app is refused). */ export declare function isLocalRequest({ remoteAddress, host, origin }: RequestOrigin): boolean; export declare function localOnly(req: Request, res: Response, next: NextFunction): void; //# sourceMappingURL=localRequest.d.ts.map