UNPKG

325 BTypeScriptView Raw
1import Auto from '../auto';
2import { ILogger } from './logger';
3export declare type IPluginConstructor = new (options?: any) => IPlugin;
4export interface IPlugin {
5 name: string;
6 apply(auto: Auto): void;
7}
8export default function loadPlugin([pluginPath, options]: [string, any], logger: ILogger): IPlugin | undefined;