/** * Copyright 2018-present Palantir Technologies, Inc. All rights reserved. * Licensed under the BSD-3 License as modified (the “License”); you may obtain * a copy of the license in the LICENSE and PATENTS files in the root of this * repository. */ import { ICompiler, IFile, INpmPluginData, IPlugin } from "../client"; export interface INpmPluginOptions { /** Whether to exclude packages marked `private`. */ excludePrivate?: boolean; /** Array of patterns to exclude packages by `name`. */ excludeNames?: Array; } /** * The `NpmPlugin` parses `package.json` files and emits data about each NPM * package. It uses `npm info` to look up data about published packages, and * falls back to `package.json` info if the package is private or unpublished. */ export declare class NpmPlugin implements IPlugin { private options; constructor(options?: INpmPluginOptions); compile(packageJsons: IFile[], dm: ICompiler): Promise; private parseNpmInfo; private getNpmInfo; }