import { type NodeRequestContext } from "@nifrajs/core/server"; export interface PrettyJsonOptions { /** JSON indentation spaces. Default `2`. */ readonly spaces?: number; /** Maximum response bytes to inspect. Default `1_000_000`; larger responses pass through. */ readonly maxBytes?: number; /** Append a final newline. Default `true`. */ readonly newline?: boolean; /** Optional query toggle. When set, pretty printing runs only when the parameter is present. */ readonly query?: string | false; /** Only pretty-print matching requests (the predicate receives the portable request view - * `{ method, url, header(name) }` - so the check runs without materializing a `Request`). * Default `true`. */ readonly enabled?: boolean | ((request: NodeRequestContext) => boolean); } /** * Pretty-print JSON responses for debugging and developer-facing APIs. It only touches JSON content, * skips encoded responses, caps inspection size, and leaves invalid JSON untouched. */ export declare function prettyJson(options?: PrettyJsonOptions): import("@nifrajs/core").IdentityPlugin; //# sourceMappingURL=pretty-json.d.ts.map