import type { Handler } from 'express'; export declare class MethodNotAllowedError extends Error { name: string; readonly status = 405; readonly statusCode = 405; } /** * Build an Express middleware that will error if the request HTTP method does not match one of the * allowed methods. The error will have `message` and `status` properties that you can use in your * error handling middleware. */ export declare function allowMethods(methods?: string[], message?: string): Handler; //# sourceMappingURL=index.d.ts.map