import { ErrorCallback, Method, Routes } from '../@types';
import type { Logger } from './Logger';
import type { Request } from './Request';
import type { Response } from './Response';
export declare const setErrorCallback: (callback: ErrorCallback) => void;
export declare const handleError: (err: Error | string, callback: ErrorCallback | null, logger: Logger, request: Request, response: Response, code?: number) => Promise<boolean>;
export declare const getRouteKeys: (method?: Method | Method[]) => Array<keyof Routes>;
