import { Readable } from 'node:stream';
export interface JsonFormattingOptions {
    /**
     * The number of spaces to use for indentation.
     *
     * @default 2
     */
    readonly spaces?: number;
}
/**
 * Type-safe Json renderer.
 */
export declare class Json<T> {
    readonly content: T;
    private opts;
    constructor(content: T, opts?: JsonFormattingOptions);
    render(): string;
    stream(): Readable;
}
