/** True when a process with this pid runs (EPERM: alive, owned by another user). */
export declare function isAlive(pid: number): boolean;
/**
 * Claims a directory that persists across runs (e.g. Vite's optimizer cache)
 * for one owner at a time. Two live dev servers writing the same optimizer
 * output would invalidate each other's served dependencies, so callers fall
 * back to a run-owned directory when the claim fails. Locks left by processes
 * that no longer run are taken over.
 * @param dir Directory to claim, created when missing.
 * @returns Release function, or `null` when another live owner holds it.
 */
export declare function claimPersistentDir(dir: string): (() => void) | null;
//# sourceMappingURL=persistent-dir.d.ts.map