/** * BMAD Templates Utility * * Loads BMAD config and templates at runtime for Conductor's * PLAN mode workflow generation. Runs in the daemon process (fs access). * * Template resolution order: * 1. External: ~/.claude/config/bmad/templates/{name}.md (user override) * 2. Bundled: templates/bmad/{name}.md (shipped with MAMA OS) * * Bundled templates are from BMAD-METHOD (MIT License, (c) 2025 BMad Code, LLC). * See templates/bmad/LICENSE for details. */ export interface BmadConfig { project_name?: string; project_level?: string; output_folder?: string; templates?: Record; [key: string]: unknown; } export interface BmadProjectConfig extends BmadConfig { /** Project-local overrides */ phases_completed?: string[]; } export interface BmadContext { initialized: boolean; projectName: string; projectLevel: string; outputFolder: string; phasesCompleted: string[]; } /** * Load global BMAD config from ~/.claude/config/bmad/config.yaml */ export declare function loadBmadGlobalConfig(): Promise; /** * Load project-local BMAD config from {projectRoot}/bmad/config.yaml */ export declare function loadBmadProjectConfig(projectRoot: string): Promise; /** * Load a BMAD template by name. * Priority: external (~/.claude/config/bmad/templates/) > bundled (templates/bmad/). */ export declare function loadBmadTemplate(templateName: string): Promise; /** * List available template names (union of bundled + external). */ export declare function listAvailableTemplates(): Promise; /** * Build output file path for BMAD documents. * Format: {outputFolder}/{type}-{projectName}-{YYYY-MM-DD}.md */ export declare function buildOutputPath(outputFolder: string, type: string, projectName: string): string; /** * Check if BMAD is initialized in a project (bmad/config.yaml exists) */ export declare function isBmadInitialized(projectRoot: string): Promise; /** * Build BMAD context for Conductor system prompt injection. * Merges global + project configs. */ export declare function buildBmadContext(projectRoot?: string): Promise; /** * Build the BMAD context block to inject into Conductor's system prompt. */ export declare function buildBmadPromptBlock(projectRoot?: string): Promise; //# sourceMappingURL=bmad-templates.d.ts.map