//#region src/utils/runParallel/pidTree.d.ts interface ListOptions { root?: boolean; advanced?: boolean; } type ProcessInfo = { pid: number; ppid?: number; }; type ResultType = T extends { advanced: true; } ? ProcessInfo[] : number[]; type ListCallback = (err: Error | null, list?: ResultType) => void; /** * Get the list of children pids of the given pid. * @param pid A PID. If -1 will return all the pids. * @param options Optional options object. * @param callback Called when the list is ready. If not provided a promise is returned instead. * @returns Only when the callback is not provided. */ export declare const list: (pid: number | string, options?: T | ListCallback, callback?: ListCallback) => Promise> | undefined; //#endregion //# sourceMappingURL=pidTree.d.ts.map