import { type ScenePlanDiagnostic } from "../diagnostics/diagnostics.js"; import { type SceneFragmentBudget, type SceneFragmentContext } from "./types.js"; import type { JsonValue } from "../model/json.js"; export type FragmentPath = readonly (string | number)[]; export declare function fragmentDiagnostic(code: string, path: FragmentPath, message: string, details?: JsonValue): ScenePlanDiagnostic; export declare function isRecord(value: unknown): value is Record; export declare function fragmentBudget(context: SceneFragmentContext): SceneFragmentBudget; export declare class FragmentInputError extends Error { readonly code: string; readonly path: FragmentPath; constructor(code: string, path: FragmentPath, message: string); } /** Fragment-specific diagnostics over the shared bounded scene JSON reader. */ export declare function readFragmentJson(input: unknown, maxBytes: number, maxDepth: number): unknown; export declare function inputFailure(error: unknown): { ok: false; diagnostics: readonly ScenePlanDiagnostic[]; }; export declare function rejectUnknownFields(value: object, allowed: readonly string[], path: FragmentPath, diagnostics: ScenePlanDiagnostic[]): void; //# sourceMappingURL=boundary.d.ts.map