import { ChildProcess } from 'node:child_process'; export interface ProcessItem { name: string; cmd: string; pid: number; ppid: number; /** cpu 使用率 */ load: number; /** 内存占用 */ mem: number; children?: ProcessItem[]; } export declare function listProcesses(rootPid: number, formatName?: (cmd: string) => string): Promise; /** 按进程实例或程序进程名称杀死进程 */ export declare function tryKillProcess(params: { proc?: ChildProcess; name?: string; }): Promise;