/** * Template Engine * * Customizable markdown templates for ticket briefs with variable substitution. */ /** * Template variables */ export interface TemplateVariables { [key: string]: string | number | boolean | string[] | undefined; } /** * Template context */ export interface TemplateContext { ticketKey: string; summary: string; description?: string; acceptanceCriteria?: string[]; assignee?: string; labels?: string[]; status?: string; [key: string]: any; } /** * Template options */ export interface TemplateOptions { /** * Template file path */ templatePath?: string; /** * Template content (if not using file) */ templateContent?: string; /** * Variables to substitute */ variables?: TemplateVariables; /** * Context for template rendering */ context?: TemplateContext; /** * Strict mode (throw on missing variables) */ strict?: boolean; } /** * Default ticket brief template */ export declare const DEFAULT_TEMPLATE = "# {{summary}}\n\n## Summary\n{{description}}\n\n## Acceptance Criteria\n{{#each acceptanceCriteria}}\n- {{this}}\n{{/each}}\n\n## Context\n{{context}}\n\n## Technical Details\n{{technicalDetails}}\n\n## Testing\n{{testing}}\n\n## Notes\n{{notes}}\n"; /** * Render template */ export declare function renderTemplate(options: TemplateOptions): Promise; /** * Render template to file */ export declare function renderTemplateToFile(outputPath: string, options: TemplateOptions): Promise; /** * Load template from file */ export declare function loadTemplate(templatePath: string): Promise; /** * Save template to file */ export declare function saveTemplate(templatePath: string, content: string): Promise; /** * Validate template syntax */ export declare function validateTemplate(template: string): { valid: boolean; errors: string[]; }; /** * Get default template */ export declare function getDefaultTemplate(): string; /** * Create template from ticket */ export declare function createTemplateFromTicket(context: TemplateContext): string; //# sourceMappingURL=template-engine.d.ts.map