import { a as MockflyConfig, c as ResponseObject, i as HttpMethod, l as Route, n as CliOptions, o as ResponseArray, r as FunResponse, s as ResponseData, t as AsyncFunResponse, u as TemplateContext } from "./utility-types-vQ3RrYNZ.mjs"; import * as fastify0 from "fastify"; import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify"; import * as http0 from "http"; //#region src/core/config.d.ts declare function loadConfig(configPath?: string, cliOptions?: CliOptions): Promise; //#endregion //#region src/core/server.d.ts declare const createServer: (config: MockflyConfig) => Promise, http0.IncomingMessage, http0.ServerResponse, fastify0.FastifyBaseLogger, fastify0.FastifyTypeProviderDefault>>; declare const startServer: (config: MockflyConfig) => Promise, http0.IncomingMessage, http0.ServerResponse, fastify0.FastifyBaseLogger, fastify0.FastifyTypeProviderDefault>>; //#endregion //#region src/core/routes.d.ts declare function registerRoutes(fastify: FastifyInstance, config: MockflyConfig): Promise; //#endregion //#region src/core/handlers.d.ts declare function createRouteHandler(route: Route, config: MockflyConfig): (request: FastifyRequest, reply: FastifyReply) => Promise; declare function createHealthHandler(): (_request: FastifyRequest, reply: FastifyReply) => Promise; //#endregion //#region src/core/http.d.ts type MockflyRouteHandler = (params: { params: TParams; query: Record; body: unknown; headers: Record; }) => any; type MockHttpOptions = Omit; interface MockflyHttp { get(path: string, handler: MockflyRouteHandler, options?: MockHttpOptions): Route; post(path: string, handler: MockflyRouteHandler, options?: MockHttpOptions): Route; put(path: string, handler: MockflyRouteHandler, options?: MockHttpOptions): Route; delete(path: string, handler: MockflyRouteHandler, options?: MockHttpOptions): Route; patch(path: string, handler: MockflyRouteHandler, options?: MockHttpOptions): Route; options(path: string, handler: MockflyRouteHandler, options?: MockHttpOptions): Route; head(path: string, handler: MockflyRouteHandler, options?: MockHttpOptions): Route; } declare function createMockflyHttp(): MockflyHttp; declare const http: MockflyHttp; //#endregion export { AsyncFunResponse, CliOptions, FunResponse, HttpMethod, MockflyConfig, ResponseArray, ResponseData, ResponseObject, Route, TemplateContext, createHealthHandler, createMockflyHttp, createRouteHandler, createServer, http, loadConfig, registerRoutes, startServer };