import { Handler } from './Handler.js'; import { type ExecuteHandlerHooks } from './executeHandler.js'; export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; export interface ServerEngineAdapter { get(path: string, handler: (req: RequestType, res: ResponseType) => Promise): void; post(path: string, handler: (req: RequestType, res: ResponseType) => Promise): void; put(path: string, handler: (req: RequestType, res: ResponseType) => Promise): void; patch(path: string, handler: (req: RequestType, res: ResponseType) => Promise): void; delete(path: string, handler: (req: RequestType, res: ResponseType) => Promise): void; options(path: string, handler: (req: RequestType, res: ResponseType) => Promise): void; head(path: string, handler: (req: RequestType, res: ResponseType) => Promise): void; } export type HttpContext = { req: RequestType; res: ResponseType; }; export type QuiltHooks = ExecuteHandlerHooks>; type ErrorHandler = (error: Error, ctx: HttpContext) => void | Promise; export declare class Quilt { private adapter; private errorHandler?; private hooks?; constructor(adapter: ServerEngineAdapter); get, any>>>(path: string, handler: Handler, D>): void; post, any>>>(path: string, handler: Handler, D>): void; put, any>>>(path: string, handler: Handler, D>): void; patch, any>>>(path: string, handler: Handler, D>): void; delete, any>>>(path: string, handler: Handler, D>): void; options, any>>>(path: string, handler: Handler, D>): void; head, any>>>(path: string, handler: Handler, D>): void; setErrorHandler(errorHandler: ErrorHandler): void; setHooks(hooks: QuiltHooks): void; private handleRequest; } export {}; //# sourceMappingURL=Quilt.d.ts.map