import { Application } from "express"; import { Options } from "http-proxy-middleware"; export interface ProxyOptions { [key: string]: Options; } export interface DynamicProxyOptions { /** * @deprecated * * this field will be deprecated in the feature, please use `file` to replace。 */ proxyFile?: string; file?: string; watch?: string[]; options?: Options; } export declare class DynamicProxy { private proxyMiddlewareStartIndex; private proxyMiddlewareEndIndex; private proxyMiddlewareLength; private app; private readonly file; private watchFile; private watcher; constructor(app: Application, options?: DynamicProxyOptions); collectDeps(): Set; createOptions(customOptions: Options): Options; registerRoutes(): void; unregisterRoutes(): void; start(): void; reload(): void; }