@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
53 lines • 1.2 kB
TypeScript
import { ModuleConfig } from '../type';
/**
* Module entity holds module configuration
*/
export declare class Module {
private moduleConfig;
constructor(moduleConfig: ModuleConfig);
/**
* Get import paths from module imports
*/
importPaths(): string[];
/**
* Get the module configuration
*/
getModuleConfig(): ModuleConfig;
/**
* Get all imports
*/
getImports(): import("../type").Import[];
/**
* Get all mounts
*/
getMounts(): import("../type").Mount[];
/**
* Get import count
*/
importCount(): number;
/**
* Get mount count
*/
mountCount(): number;
/**
* Check if module has imports
*/
hasImports(): boolean;
/**
* Check if module has mounts
*/
hasMounts(): boolean;
/**
* Find import by path
*/
findImport(path: string): import("../type").Import | undefined;
/**
* Find mount by source
*/
findMount(source: string): import("../type").Mount | undefined;
}
/**
* Create a new Module instance from provider data
*/
export declare function newModule(data: any): Module;
//# sourceMappingURL=module.d.ts.map