/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { DiscoveredToolingPackage, ToolingPackage } from '../internal'; /** * Defines a system that can discover locally installed tooling packages * * @export * @interface ICanDiscoverLocalPackages */ export interface ICanDiscoverLocalPackages { /** * Discovers the locally installed tooling packages * * @param {string} [folder] The folder to start discovering from * @param {(packageJson: ToolingPackage) => boolean} [check] The optional check on the package.json * @returns {Promise} */ discover(folder?: string, check?: (toolingPackage: ToolingPackage) => boolean): Promise }