export interface EntryLimits { serializedBytes: number; depth: number; properties: number; arrayLength: number; stringLength: number; entries: number; timeMs: number; memoryBytes: number; } export declare const DEFAULT_ENTRY_LIMITS: Readonly; export declare class EntryAdmissionError extends Error { readonly reasonCode: string; readonly counts: Readonly>; constructor(reasonCode: string, counts: Readonly>); } /** * An admission-budget clock reading: per-thread CPU time * (`process.threadCpuUsage()`) on the required Node 24 runtime. * Opaque to callers -- always pass it straight to `elapsedAdmissionMs`. */ export type AdmissionClock = NodeJS.CpuUsage; /** * Starts an admission-budget clock using per-thread CPU time. * * Per-thread CPU time measures only the work the admitting call itself did * on this thread, so it is immune both to host scheduling contention * pausing this thread between reads (the root cause of #3047's false * `time-budget` rejections of legitimate input under host load) and to * other threads' or background GC's CPU time landing on this same process * (which a process-wide `process.cpuUsage()` clock would still charge here * -- not a safe substitute for the same reason `performance.now()` was not). */ export declare function admissionClockStart(): AdmissionClock; /** Elapsed time since `start` (from `admissionClockStart`), in milliseconds. */ export declare function elapsedAdmissionMs(start: AdmissionClock): number; /** Check the object graph before JSON serialization, schema validation or digesting. */ export declare function admitEntry(value: unknown, limits?: Readonly): void; /** Parse authored JSON with duplicate mapping keys rejected before it becomes an object. */ export declare function parseDecisionJson(source: string, limits?: Readonly): unknown; /** Parse YAML decision documents while rejecting aliases and non-string mapping keys. */ export declare function parseDecisionYaml(source: string, limits?: Readonly): unknown; /** Bounded gzip admission for callers that accept compressed decision documents. */ export declare function parseCompressedDecisionJson(source: Uint8Array, limits?: Readonly): unknown; //# sourceMappingURL=entry.d.ts.map