/** * [WHO]: TeachRuntime - core teaching state machine * [FROM]: Depends on teach-types.ts, teach-prompts.ts, teach-persistence.ts, teach-i18n.ts * [TO]: Consumed by index.ts * [HERE]: extensions/builtin/teach/teach-runtime.ts - teaching logic and state management */ import type { ExtensionCommandContext } from "../../../core/extensions-host/types.js"; import type { TeachResult, TeachState } from "./teach-types.js"; export declare class TeachRuntime { private state; private persistence; private locale; /** * Initialize the runtime with workspace path */ initialize(workspacePath: string): void; /** * Start teaching a new topic */ startTeaching(ctx: ExtensionCommandContext, topic: string): Promise; /** * Process user response and advance the teaching flow */ processResponse(ctx: ExtensionCommandContext, response: string): Promise; /** * Process mission discovery response */ private processMissionResponse; /** * Process learning style response */ private processLearningStyleResponse; /** * Process teaching response */ private processTeachingResponse; /** * Process progress response */ private processProgressResponse; /** * Teach the next level */ private teachNextLevel; /** * Complete the teaching session */ private completeTeaching; /** * Get the next action based on learning style and current level */ private getNextAction; /** * Find an analogy for the topic */ private findAnalogy; /** * Verify sources for the topic */ private verifySources; /** * Parse mission from user response */ private parseMission; /** * Parse learning style from user response */ private parseLearningStyle; /** * Infer learner level from existing records */ private inferLearnerLevel; /** * Build resume message */ private buildResumeMessage; /** * Generate answer for a question */ private generateAnswerForQuestion; /** * Get current state snapshot */ private getStateSnapshot; /** * Get current state */ getState(): TeachState | null; /** * Reset state */ reset(): void; }