/** * Command Templates System * * Reusable command templates for common patterns * Supports saving, using, listing, and editing templates */ import type { CommandAdapter } from './command-adapter.interface.js'; export interface CommandTemplate { args?: string[]; command: string; created: string; description: string; name: string; options?: Record; tags?: string[]; updated: string; variables?: Record; } export declare class TemplateManager { private templatesDir; constructor(templatesDir?: string); /** * Ensure templates directory exists */ private ensureTemplatesDir; /** * Get path for a template file */ private getTemplatePath; /** * Save a template */ save(template: Omit): Promise; /** * Load a template */ load(name: string): Promise; /** * List all templates */ list(tags?: string[]): Promise; /** * Delete a template */ delete(name: string): Promise; /** * Use a template (apply with variable substitution) */ use(name: string, variables?: Record): Promise; /** * Substitute variables in a string */ private substituteVariables; /** * Edit a template */ edit(name: string): Promise; /** * Export template to file */ export(name: string, outputPath: string): Promise; /** * Import template from file */ import(filePath: string): Promise; /** * Format template list for display */ formatList(templates: CommandTemplate[]): string; } /** * Built-in templates */ export declare const BUILTIN_TEMPLATES: Array>; /** * Configure template command */ export declare function configureTemplateCommand(program: CommandAdapter): void; //# sourceMappingURL=command-templates.d.ts.map