import { PluginApi } from "./plugin-api"; import { FileUtil, ProxyConfig } from "./file-util"; import { DbUtil } from "./db-util"; import { Application, Request, Response } from "express"; export interface GlobalContextInterface { app: Application; db: DbUtil; file: FileUtil; config: ProxyConfig; cwd: string; pluginApi: PluginApi; } export interface ScopedContextInterface { request: Request; response: Response; } export declare class GlobalContext implements GlobalContextInterface { readonly app: Application; readonly db: DbUtil; readonly file: FileUtil; readonly config: ProxyConfig; readonly cwd: string; readonly pluginApi: PluginApi; configFilePath: string; constructor(app: Application, port?: number); } export declare class ScopedContext implements ScopedContextInterface { request: Request; response: Response; constructor(req: Request, res: Response); } export declare function createScopedContext(request: Request, response: Response): ScopedContext;