export type CanonicalJsonValue = null | boolean | number | string | CanonicalJsonValue[] | { [key: string]: CanonicalJsonValue; }; export declare const OPENPOND_TRAINING_PROTOCOL_MAJOR: 2; export declare const OPENPOND_TRAINING_MEDIA_TYPE: "application/vnd.openpond.training+json;version=2"; export declare const OPENPOND_MODEL_PROJECT_MEDIA_TYPE: "application/vnd.openpond.model-project+json;version=2"; export declare const TRAINING_JOB_SUBMISSION_MAX_BYTES = 1048576; export declare const TRAINING_INPUT_ARTIFACT_MAX_BYTES = 67108864; export declare const TRAINING_API_RESPONSE_MAX_BYTES = 8388608; export declare const MODEL_PROJECT_SYNC_MAX_BYTES = 524288; export declare const MODEL_PROJECT_API_RESPONSE_MAX_BYTES = 8388608; export declare class OpenPondProtocolError extends Error { readonly code: string; constructor(code: string, message: string); } /** * Deterministic JSON used for content-addressed OpenPond protocol objects. * Object keys are sorted by Unicode code point, arrays retain their authored * order, and non-JSON/non-finite values are rejected rather than coerced. */ export declare function canonicalJson(value: unknown): string; export declare function canonicalJsonByteLength(value: unknown): number; export declare function canonicalSha256(value: unknown): Promise; export declare function assertCanonicalPayloadSize(value: unknown, maximumBytes: number, label: string): void; export declare function parseBoundedJson(text: string, maximumBytes: number, label: string): unknown; /** Bound the wire body while consuming it, before allocating the complete JSON * string. Reader cleanup must never replace the original transport/JSON error. */ export declare function readBoundedJsonResponse(response: Response, maximumBytes: number, label: string): Promise; //# sourceMappingURL=protocol.d.ts.map