import { NextResponse, NextRequest } from "next/server"; /** * Utility class for creating Next.js responses with TOON formatting. */ export declare class ToonResponse extends NextResponse { /** * Creates a NextResponse with `application/toon` content type and serialized body. * * @param body The JS object or array to serialize. * @param init Optional response initialization options (status, headers, etc.) */ static toon(body: any, init?: ResponseInit): NextResponse; } /** * Helper to parse a NextRequest body automatically depending on its Content-Type. * Supports `application/toon` and `application/json`. * * @param req The NextRequest object */ export declare function parseToonRequest(req: NextRequest): Promise;