import type { ContinuumArtifactJsonLoadContext } from './ContinuumArtifactJsonLoadContext.ts';
import type { JsonObject } from './JsonObject.ts';
/** Validates the caller-supplied load context boundary. */
export declare function validateLoadContext(context: ContinuumArtifactJsonLoadContext): void;
/** Requires the context authority that matches the parsed artifact shape. */
export declare function requireContextAuthority(context: ContinuumArtifactJsonLoadContext, expected: string, label: string): void;
/** Requires a non-array JSON object. */
export declare function requireJsonObject(value: unknown, label: string): JsonObject;
/** Returns true when a value is a non-array JSON object. */
export declare function isJsonObject(value: unknown): value is JsonObject;
/** Rejects unexpected fields at a parsed JSON boundary. */
export declare function rejectUnknownKeys(source: JsonObject, allowed: readonly string[], label: string): void;
/** Reads a required string field. */
export declare function readRequiredString(source: JsonObject, key: string): string;
/** Reads a required context string. */
export declare function readContextString(value: string | undefined, key: string): string;
/** Reads a required number field. */
export declare function readRequiredNumber(source: JsonObject, key: string): number;
/** Reads an optional generated artifact count. */
export declare function readOptionalArtifactCount(source: JsonObject, key: string): number | undefined;
/** Reads an optional string array field. */
export declare function readOptionalStringArray(source: JsonObject, key: string): readonly string[] | undefined;
/** Reads an optional string field. */
export declare function readOptionalString(source: JsonObject, key: string): string | undefined;
/** Reads a required string array field. */
export declare function readStringArray(source: JsonObject, key: string): readonly string[];
