export declare function withScopedEnv(envDir: string, fn: () => Promise | T): Promise;