///
declare namespace PkgInfo {
interface Options {
dir?: string;
include: string[];
}
interface FindResults {
dir?: string;
package: Record;
}
interface PkgInfo {
(pmodule: NodeModule, options?: Options | string[] | string, ...properties: string[]): PkgInfo;
//
// ### function find (dir)
// #### @pmodule {Module} Parent module to read from.
// #### @dir {string} **Optional** Directory to start search from.
// Searches up the directory tree from `dir` until it finds a directory
// which contains a `package.json` file.
//
read(
pmodule: NodeModule,
dir?: string,
): FindResults;
find(
pmodule: NodeModule,
dir?: string,
): Record;
}
}
declare const pkgInfo: PkgInfo.PkgInfo & { version: string };
export = pkgInfo;