/** * Shared helpers for the per-protocol "load by task id" wrapper functions. * * The pure validators live in `orchestration/protocol-validators.ts` — this * module is only about bridging the legacy taskId/manifestFile entry points * (used by the CLI / dispatch layer) to those pure validators. * * @task T260 */ import type { ManifestEntryInput, ProtocolType, ProtocolValidationResult } from '../../orchestration/protocol-validators.js'; /** * Locate the manifest line for a given task ID, reading from the end of the * file so the most recent entry wins. * * @task T260 */ export declare function findManifestEntry(taskId: string, manifestPath: string): string | null; /** * Load a manifest entry by task ID from the canonical manifest file. * * @task T260 */ export declare function loadManifestEntryByTaskId(taskId: string): ManifestEntryInput; /** * Load a manifest entry from an arbitrary JSON file (used by the `manifest` * dispatch mode where the caller already has a serialized entry). * * @task T260 */ export declare function loadManifestEntryFromFile(manifestFile: string): ManifestEntryInput; /** * Throw a CleoError with the protocol's canonical exit code when strict * validation fails. * * @task T260 */ export declare function throwIfStrictFailed(result: ProtocolValidationResult, opts: { strict?: boolean; }, protocol: ProtocolType, taskId: string): void; //# sourceMappingURL=_shared.d.ts.map