/** * Find and terminate all processes matching the given pgrep pattern. * * @param pgrepPattern - Pattern used to find candidate processes. * @param cmdlineIncludes - If given, a candidate is only killed if its full * command line also contains this substring. Used to narrow a broad pgrep * match (e.g. by device udid) down to processes this package actually started. */ export declare function killAppUsingPattern(pgrepPattern: string, cmdlineIncludes?: string): Promise; /** * Kills running XCTest processes for the particular device. * * The `xcodebuild` pattern is additionally scoped to processes this package started * (see {@link XCODEBUILD_PROCESS_MARKER}), so other XCTest-based tools targeting the * same udid (e.g. a separately managed WebDriverAgent instance) are left alone. * The XCTRunner/xctest patterns below cannot be scoped the same way, since those * processes do not inherit xcodebuild's command line. */ export declare function resetTestProcesses(udid: string, isSimulator: boolean): Promise; /** * Get the IDs of processes listening on the particular system port. * It is also possible to apply additional filtering based on the * process command line. * * @param port - The port number. * @param filteringFunc - Optional lambda function, which * receives command line string of the particular process * listening on given port, and is expected to return * either true or false to include/exclude the corresponding PID * from the resulting array. * @returns - the list of matched process ids. */ export declare function getPIDsListeningOnPort(port: string | number, filteringFunc?: ((cmdline: string) => boolean | Promise) | null): Promise; //# sourceMappingURL=processes.d.ts.map