import type { AgentTemplateDefinition } from '../config.js'; /** Cross-process exclusion used from seal through durable Room publication. */ export declare function acquireLaunchSnapshotLock(options?: { beforePublish?: (claimPath: string, lockPath: string) => void; }): () => void; export declare function redactLaunchDefinition(value: unknown, key?: string): unknown; export declare function sealLaunchSnapshot(definitions: Record): string; export declare function readLaunchSnapshot(hash: string): Record; /** Delete a sealed snapshot only after no retained Task/Room record references it. */ export declare function releaseLaunchSnapshot(hash: string): void; /** * Deletion-finalization variant: the caller already holds the global * launch-snapshot lock and is about to unlink the deletion-pending task * `taskId`. The reference scan excludes exactly that task file — every other * retained Task/Room reference still protects the snapshot. Deleting the * snapshot BEFORE the task unlink keeps every crash seam recoverable: the * hidden intent survives, and a retry sees the snapshot already absent. */ export declare function releaseLaunchSnapshotForDeletingTask(hash: string, taskId: string): void;