export declare function update(pkg: string | undefined, options: { global?: boolean; agent?: string; }): Promise;