/** * Port Semaphore Manager * Coordinates physical UART ownership via the filesystem. * * Provides: * - SemaphoreManager: Singleton for hardware-level port locking. * - portSemaphoreManager: Default exported instance. */ /** * Port Semaphore Manager * Coordinates physical UART ownership via the filesystem. * Named .port..lock to prevent collision and ensure server-wide consistency. */ export declare class SemaphoreManager { private static instance; private constructor(); static getInstance(): SemaphoreManager; private getLockFilePath; /** * Claims a physical port by creating a lock file. * If the file already exists, it updates the timestamp. */ claimPort(port: string, reason?: string): void; /** * Releases a claim by removing the lock file. */ releasePort(port: string): void; /** * Checks if a port is physically claimed by a high-priority operation. */ isPortClaimed(port: string): boolean; /** * Retrieves the current claim payload for a port, if it exists. */ getClaim(port: string): any | null; } export declare const portSemaphoreManager: SemaphoreManager; //# sourceMappingURL=semaphore.d.ts.map