/** * Manifest validation starting from raw JSON text. * * Wire callers that still hold the received text should use this entry point * rather than `JSON.parse` followed by {@link parseWorkerManifest}: duplicate * object keys are only visible before parsing, and silently taking the last * one would let a worker present two different artifact digests in one * payload. * * @module worker/manifest/parse-json */ import { type WorkerManifestParseResult } from './parse.ts'; /** * Validate an untrusted worker manifest from JSON text. * * @example * ```ts * import { parseWorkerManifestJson } from '@lostgradient/weft'; * * const result = parseWorkerManifestJson('{"manifestVersion":1,"manifestVersion":2}'); * console.log(result.ok ? 'accepted' : result.reason); // 'duplicate_key' * ``` */ export declare function parseWorkerManifestJson(text: string): WorkerManifestParseResult;