export interface RpcPortFileRecord {
    port: number;
    pid: number;
    started_at: number;
}
/**
 * Stable hash for a project directory — scopes RPC port files per-project
 * so multiple OpenCode instances don't collide.
 */
export declare function projectHash(directory: string): string;
/** Directory containing per-process RPC discovery files for a project. */
export declare function rpcPortDir(storageDir: string, directory: string): string;
/** Per-process RPC port file path. */
export declare function rpcPortFilePath(storageDir: string, directory: string, pid?: number): string;
/** Legacy single-port file used by v0.18.0 and earlier. */
export declare function legacyRpcPortFilePath(storageDir: string, directory: string): string;
export declare function isPidAlive(pid: number): boolean;
export declare function parseRpcPortFile(content: string, fallbackPid?: number): RpcPortFileRecord | null;
//# sourceMappingURL=rpc-utils.d.ts.map