import type { ChildProcess } from 'node:child_process';
/**
 * Wait for a specific string to appear in the output.
 */
export declare function waitForOutput(getOutput: () => string, searchString: string): Promise<void>;
/**
 * Wait for a condition to become true.
 */
export declare function waitForCondition(condition: () => boolean): Promise<void>;
/**
 * Kill a spawned process.
 */
export declare function safeKillProcess(proc: ChildProcess): void;
