/// import * as Vinyl from 'vinyl'; import File from './File'; export interface ParserOptions { /** * The directory that external modules get imported to. */ modulesDir: string; [option: string]: any; } /** * Class representing a JS parser. */ export default class Parser { private options; constructor(options: ParserOptions); /** * Finds and returns the paths to all files that are required or imported in the file. * @param origin - The file that contains the code of the program. * @param modulesDir - The directory that contains imported modules. */ parse(origin: Vinyl): File[]; }