@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
20 lines • 586 B
TypeScript
import { Module } from '../type';
/**
* Lang entity that manages source-to-language mappings
* TypeScript version of Go's Lang entity
*/
export declare class Lang {
private sourceLangMap;
constructor(modules: Module[]);
/**
* Get source language
* Returns a tuple of [language, exists] to match Go's return pattern
*/
getSourceLang(source: string): [string, boolean];
}
/**
* Creates a new Lang instance
* Factory function to match Go's NewLang function
*/
export declare function newLang(modules: Module[]): Lang;
//# sourceMappingURL=lang.d.ts.map