export declare function checkGlobalBinDir(globalBinDir: string, { env, shouldAllowWrite }: { env: Record; shouldAllowWrite?: boolean; }): Promise;