import http from "node:http"; import { type Middleware, type ErrorMiddleware } from "./compose"; import { type FacileRouter } from "../router/router"; export type App = { use(path: string, fn: Middleware | ErrorMiddleware | FacileRouter): App; use(fn: Middleware | ErrorMiddleware | FacileRouter): App; get(path: string, ...h: Middleware[]): App; post(path: string, ...h: Middleware[]): App; put(path: string, ...h: Middleware[]): App; patch(path: string, ...h: Middleware[]): App; delete(path: string, ...h: Middleware[]): App; router: FacileRouter; listen(port: number, cb?: () => void): http.Server; }; export declare function createApp(): App; //# sourceMappingURL=app.d.ts.map