/** Module-local wrapper for testability — DO NOT inline `process.kill`. */
export declare function probeProcess(pid: number): "alive" | "dead" | "unknown";
type ProbeFn = (pid: number) => "alive" | "dead" | "unknown";
export declare function withFileLock<T>(filePath: string, fn: () => Promise<T> | T, probe?: ProbeFn): Promise<T>;
/** Warn on stderr if a caught error is a permission issue. Returns true if it was a permission error. */
export declare function warnIfPermissionError(err: unknown, label: string): boolean;
export {};
//# sourceMappingURL=fileLock.d.ts.map