import { type KeelMiddlewareOptions, type MethodUrlLike, type MiddlewareResponseLike } from "./shared"; export interface NextApiRequestLike extends MethodUrlLike { [key: string]: unknown; } export interface NextApiResponseLike extends MiddlewareResponseLike { [key: string]: unknown; } export type NextApiHandler = (req: TReq, res: TRes) => unknown | Promise; export type KeelNextOptions = KeelMiddlewareOptions; export declare function withKeel(handler: NextApiHandler, opts: KeelNextOptions): NextApiHandler;