export declare class DaemonLockError extends Error { code: 'HELD' | 'UNSUPPORTED_FILESYSTEM'; constructor(code: 'HELD' | 'UNSUPPORTED_FILESYSTEM', message: string); } export interface DaemonLockHandle { /** Frees the lock; calling it again does nothing. */ release(): void; } /** The filesystem type of the mount that contains `path`, from /proc/self/mountinfo text. */ export declare function mountFsTypeOf(mountinfo: string, path: string): string | undefined; /** Throws UNSUPPORTED_FILESYSTEM when `root` is on a network filesystem. A * platform or path the check cannot classify is allowed. */ export declare function assertSupportedFilesystem(root: string, opts?: { mountinfo?: string; }): void; /** * Takes the lock for (root, org) or throws DaemonLockError: HELD when another * daemon owns it, UNSUPPORTED_FILESYSTEM when the root is on a network mount. */ export declare function acquireDaemonLock(root: string, org: string): Promise; //# sourceMappingURL=daemon-lock.d.ts.map