/// import { FilePathInfo, ConfigurationReader } from "../util"; import { Request, Response, NextFunction } from "express"; export declare class LocalFileMock { config: ConfigurationReader; private logger; constructor(config: ConfigurationReader); private getFilesList; private getMockFile; getResponse(opts: GetExpressMiddlewareOptions, req: RequestAdapter): Promise; private readRawFile; private readJsModule; getExpressMiddleware(opts: GetExpressMiddlewareOptions): (req: Request, res: Response, next: NextFunction) => void; } export interface RequestAdapter { protocol: string; host: string; method: string; url: string; path: string; query: { [key: string]: string; }; headers: { [key: string]: string; }; body: Buffer; } export interface ResponseAdapter { content: Buffer | string; headers: { [key: string]: string; }; } export interface FileInfo { file: FilePathInfo; } export interface GetExpressMiddlewareOptions { getMockFileName: (req: RequestAdapter) => string; }