UNPKG

@gork-labs/secondbrain-mcp

Version:

Second Brain MCP Server - Agent team orchestration with dynamic tool discovery

47 lines (46 loc) 1.3 kB
/** * Template variable substitution data */ export interface TemplateVariables { [key: string]: string | string[] | number | boolean | undefined; } /** * Template manager for loading and rendering instruction templates */ export declare class TemplateManager { private templates; private templatesPath; private initialized; constructor(); /** * Initialize the template manager by loading all templates */ initialize(): Promise<void>; /** * Render a template with the provided variables */ render(templateName: string, variables?: TemplateVariables): string; /** * Check if a template exists */ hasTemplate(templateName: string): boolean; /** * Get list of available template names */ getTemplateNames(): string[]; /** * Reload templates from disk */ reload(): Promise<void>; /** * Get raw template content (for debugging) */ getRawTemplate(templateName: string): string | undefined; /** * Create a template renderer with pre-bound variables */ createRenderer(baseVariables?: TemplateVariables): { render: (templateName: string, additionalVariables?: TemplateVariables) => string; }; } export declare const templateManager: TemplateManager;