26 lines
614 B
TypeScript
26 lines
614 B
TypeScript
/**
|
|
* This class aim to resolve honkit's package name and get the module path.
|
|
*
|
|
* Define
|
|
*
|
|
* - `package` is npm package
|
|
* - `module` is package's main module
|
|
*
|
|
* ## Support
|
|
*
|
|
* - honkit-plugin-*
|
|
* - gitbook-plugin-*
|
|
*/
|
|
export declare class PluginResolver {
|
|
baseDirectory: string;
|
|
constructor(config?: {
|
|
baseDirectory?: string;
|
|
});
|
|
/**
|
|
* Take package name, and return path to module.
|
|
* @param {string} packageName
|
|
* @returns {string} return path to module
|
|
*/
|
|
resolvePluginPackageName(packageName: any): any;
|
|
}
|
|
//# sourceMappingURL=PluginResolver.d.ts.map
|