//#region src/types.d.ts /** * Process information */ interface ProcessInfo { pid: number; ppid: number; uid?: number; gid?: number; name: string; bin?: string; cmd: string; } type LogLevel = "warn" | "error"; interface FindConfig { logLevel?: LogLevel; } interface FindByNameConfig extends FindConfig { strict?: boolean; } //#endregion //#region src/find.d.ts /** * Find the process listening on the given port */ export declare function byPort(port: number, options?: FindConfig): Promise; /** * Find the process with the given PID */ export declare function byPid(pid: number, options?: FindConfig): Promise; /** * Find processes by name */ export declare function byName(name: string | RegExp, options?: FindByNameConfig | boolean): Promise; //#endregion export type { ProcessInfo };