promptly-ai
Version:
A universal template-based prompt management system for LLM applications
24 lines • 674 B
TypeScript
import { ParsedTemplate } from '../types';
export declare class TemplateLoader {
private templateCache;
private templatesPath;
private cacheEnabled;
constructor(templatesPath: string, cacheEnabled?: boolean);
/**
* Load and parse a template file
*/
loadTemplate(templateName: string): Promise<ParsedTemplate>;
/**
* Get list of available templates
*/
getAvailableTemplates(): Promise<string[]>;
/**
* Clear the template cache
*/
clearCache(): void;
/**
* Check if template exists
*/
templateExists(templateName: string): Promise<boolean>;
}
//# sourceMappingURL=template-loader.d.ts.map