/** * Get the default portfile path. * @returns The path to the portfile in the system's temp directory. */ export declare function getPortfilePath(): string; /** * Write port, PID, library path, and optionally started_at to the portfile. * @param portfilePath - Path to the portfile * @param port - Server port number * @param pid - Server process ID * @param library - Path to the library file * @param started_at - Optional ISO 8601 timestamp of when the server started */ export declare function writePortfile(portfilePath: string, port: number, pid: number, library: string, started_at?: string): Promise; /** * Read port, PID, library, and optionally started_at from the portfile. * @param portfilePath - Path to the portfile * @returns Object with port, pid, library (if present), and started_at (if present), or null if file doesn't exist or is invalid */ export declare function readPortfile(portfilePath: string): Promise<{ port: number; pid: number; library?: string; started_at?: string; } | null>; /** * Check if the portfile exists. * @param portfilePath - Path to the portfile * @returns True if portfile exists, false otherwise */ export declare function portfileExists(portfilePath: string): Promise; /** * Remove the portfile. * @param portfilePath - Path to the portfile */ export declare function removePortfile(portfilePath: string): Promise; /** * Check if a process with the given PID is running. * @param pid - Process ID to check * @returns True if process is running, false otherwise */ export declare function isProcessRunning(pid: number): boolean; //# sourceMappingURL=portfile.d.ts.map