/**
 * Run `fn` while every ambient stdout write (clack logs, dependency output) is
 * routed to stderr, so a `--json` command can print exactly one JSON document
 * on stdout afterwards.
 */
export declare function withStdoutOnStderr<T>(fn: () => Promise<T>): Promise<T>;
