import { ErrorStatus } from './status';
export declare const httpError: <Type extends "Bad Request" | "Unauthorized" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Request Entity Too Large" | "Request-URI Too Long" | "Unsupported Media Type" | "Requested Range Not Satisfiable" | "Expectation Failed" | "Unprocessable entity" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported", Name extends string, Data>(type: Type, name: Name, data?: Data | undefined) => {
    error: {
        name: Name;
        data?: Data | undefined;
        status: {
            readonly 'Bad Request': 400;
            readonly Unauthorized: 401;
            readonly Forbidden: 403;
            readonly 'Not Found': 404;
            readonly 'Method Not Allowed': 405;
            readonly 'Not Acceptable': 406;
            readonly 'Proxy Authentication Required': 407;
            readonly 'Request Timeout': 408;
            readonly Conflict: 409;
            readonly Gone: 410;
            readonly 'Length Required': 411;
            readonly 'Precondition Failed': 412;
            readonly 'Request Entity Too Large': 413;
            readonly 'Request-URI Too Long': 414;
            readonly 'Unsupported Media Type': 415;
            readonly 'Requested Range Not Satisfiable': 416;
            readonly 'Expectation Failed': 417;
            readonly 'Unprocessable entity': 422;
            readonly 'Internal Server Error': 500;
            readonly 'Not Implemented': 501;
            readonly 'Bad Gateway': 502;
            readonly 'Service Unavailable': 503;
            readonly 'Gateway Timeout': 504;
            readonly 'HTTP Version Not Supported': 505;
        }[Type];
    };
};
export * from './listener';
export * from './types';
//# sourceMappingURL=index.d.ts.map