/** * Run an async function with the process working directory temporarily set to `dir`. * * NOTE: `process.chdir()` is global, so this uses a simple in-process queue to avoid * concurrent calls interfering with each other. */ export declare function withCwd(dir: string, fn: () => Promise): Promise;