export declare function install(pkgSpec: string, options: { global?: boolean; agent?: string; }): Promise;