/**
 * The one protocol depth limit of the compact ingest boundary (senpi#4272 RULING-59 C). An incoming record is cloned
 * through native JSON before anything is owned, and native JSON recurses on nesting: Node 24 serializes at most 6,185
 * levels from a shallow stack (fewer under a deep one) and Bun 1.4 at most 40,000, and above that it throws an untyped
 * `RangeError`. A record nested deeper than this constant is refused before that clone.
 */
export declare const COMPACT_PROTOCOL_MAX_DEPTH = 1024;
/**
 * Refuses `value` when it nests more than `COMPACT_PROTOCOL_MAX_DEPTH` containers (`[[1]]` is 2 deep), walking it with
 * an explicit stack bounded by that limit, so the check itself never recurses. A cycle is refused as `cycle`.
 */
export declare function assertProtocolDepth(value: unknown): void;
export declare function protocolClone<T>(record: object): T;
/** The limit a depth refusal carries; undefined for every other failure, which ends the epoch's compact state. */
export declare function protocolDepthLimitOf(cause: unknown): number | undefined;
/** A worker's `canonical_unavailable` frame as the host lane's cause: its depth refusal is rebuilt typed. */
export declare function canonicalLoss(frame: {
    readonly reason: string;
    readonly limit?: number | undefined;
}): unknown;
//# sourceMappingURL=compact-protocol-depth.d.ts.map