import { JsonBudget, type JsonValue, type RecipeLimits } from "./json-value.js"; /** Accounts for serialized JSON without allocating the serialized document. */ export declare class JsonOutputBudget { private readonly limits; private readonly nodes; private readonly byteError; private usedBytes; constructor(limits: RecipeLimits, nodes: JsonBudget, byteError?: string); get bytes(): number; node(path: string, depth: number): void; addBytes(bytes: number, path: string): void; scalar(value: JsonValue, path: string): void; string(parts: Iterable, path: string): void; measure(value: JsonValue, path: string, depth?: number): void; private segment; private check; } //# sourceMappingURL=json-output-budget.d.ts.map