export interface PSTreeChild { PPID: string; PID: string; STAT: string; COMMAND: string; } export type Callback = (err: Error | null, children?: PSTreeChild[]) => void; export declare function psTree(pid: number | string): Promise; export declare function psTree(pid: number | string, callback: Callback): void; export declare const pstree: typeof psTree;