import type { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
type Handlers = {
    [method in "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "OPTIONS"]?: Promise<{
        default: NextApiHandler;
    }>;
};
/** Allows us to split big API handlers by method */
export declare const defaultHandler: (handlers: Handlers) => (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
export {};
//# sourceMappingURL=defaultHandler.d.ts.map