import { PluginLookup } from './lookup'; import { Plugin } from './plugin'; /** * Interface which describes a plugin registry. */ export interface PluginRegistry extends PluginLookup { /** * Get a value indicating whether the plugin is present. * * @param {string} id * A plugin identifier. * * @return {boolean} * True if the plugin is present, otherwise false. */ has(id: string): boolean; /** * Get a plugin with given identifier. * * @param {string} id * A plugin identifier. * * @return {Plugin|null} */ get(id: string): PluginType | null; }