type HandlerType = 'Normal' | 'Error';
type TypedHandler = {
    type: HandlerType;
    handler: (next: Function, ...args: any[]) => void;
};
type NormalHandler = (next: Function, ...args: any[]) => void;
type ErrorHandler = (error: any, next: Function, ...args: any[]) => void;
export default class Middleware {
    handlers: TypedHandler[];
    use(handler: NormalHandler): void;
    useErrorHandler(handler: ErrorHandler): void;
    go(done: Function, ...args: any[]): void;
    private processHandlers;
}
export {};
//# sourceMappingURL=middleware.d.ts.map