//#region src/utility-types.d.ts type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS' | 'HEAD'; interface MockflyConfig { port: number; host: string; baseUrl: string; delay?: number; cors?: boolean; staticDir?: string; mockDir?: string; routes: Route[]; configPath?: string; configDir?: string; } interface Route { name?: string; path: string; method: HttpMethod; response?: ResponseData | FunResponse | AsyncFunResponse; delay?: number; } type AsyncFunResponse = (req: TemplateContext) => Promise; type FunResponse = (req: TemplateContext) => ResponseData; type ResponseData = string | number | boolean | null | ResponseObject | ResponseArray; interface ResponseObject { [key: string]: ResponseData; } interface ResponseArray extends Array {} interface TemplateContext { params: Record; query: Record; body: unknown; headers: Record; } interface CliOptions { port?: number; config?: string; } //#endregion export { MockflyConfig as a, ResponseObject as c, HttpMethod as i, Route as l, CliOptions as n, ResponseArray as o, FunResponse as r, ResponseData as s, AsyncFunResponse as t, TemplateContext as u };