export declare function assertSafePathSegment(value: string, label: string): void; /** Reject workspace escapes and every existing symlink in the managed path ancestry. */ export declare function assertSafeManagedPath(path: string): string; export declare function fsyncParentDirectory(target: string): void; export declare function fsyncDirectory(directory: string): void; export declare function ensureDurableDirectory(directory: string): void; /** * Serialize project-state mutations (including multi-file layer writes to * project.json + local.json via writeProjectLayers). Nested calls re-enter the * same lease (localLockDepth); prefer write helpers in state.ts for layer I/O. */ export declare function withStateWriterLock(work: () => T): T; export declare function withStateWriterLockAsync(work: () => Promise | T): Promise; /** Fence every protected mutation if the renewable token lease is no longer ours. */ export declare function assertStateWriterLeaseHealthy(): void; /** Trace/read-only helpers can fence when called inside a mutation without requiring a lease otherwise. */ export declare function assertStateWriterLeaseHealthyIfHeld(): void; //# sourceMappingURL=state-writer-lock.d.ts.map