import http from 'http'; export declare class KineticRequest extends http.IncomingMessage { body?: any; } export declare class KineticResponse extends http.ServerResponse { status(code: number): this; json(data: any): this; send(data: string | Buffer): this; redirect(url: string): this; } export type RouteHandler = (req: KineticRequest, res: KineticResponse) => void; export type Method = 'GET' | 'POST' | 'PUT' | 'DELETE'; export interface Route { method: Method; handler: RouteHandler; } export type Middleware = (req: KineticRequest, res: KineticResponse, next: () => void) => void; export type ErrorHandler = (err: Error, req: KineticRequest, res: KineticResponse, next: () => void) => void;