/** * Runs `fn` with `process.stderr.write` swapped for a collector and returns * every chunk written meanwhile. Used to observe output that only goes to * stderr, such as the `debug` channel, without a TTY. */ export declare function captureStderr(fn: () => Promise): Promise;