/** * Prompt Manager - プロンプトテンプレート管理 * * @requirement REQ-LLM-002 * @design DES-KATASHIRO-003-LLM §3.2 */ import type { PromptTemplate, Message } from './types.js'; /** * テンプレート変数 */ export type TemplateVariables = Record; /** * PromptManager - プロンプトテンプレート管理 */ export declare class PromptManager { private templates; /** * テンプレート登録 */ register(template: PromptTemplate): void; /** * テンプレート取得 */ get(id: string): PromptTemplate | undefined; /** * テンプレート一覧取得 */ list(): PromptTemplate[]; /** * テンプレート削除 */ unregister(id: string): boolean; /** * テンプレートをレンダリング */ render(id: string, variables?: TemplateVariables): string; /** * テンプレートをメッセージとしてレンダリング */ renderAsMessage(id: string, variables?: TemplateVariables, role?: Message['role']): Message; /** * 複数テンプレートをチェーン */ chain(templateIds: string[], variables?: TemplateVariables, separator?: string): string; /** * テンプレート文字列をレンダリング(直接) */ renderString(template: string, variables?: TemplateVariables): string; /** * テンプレートをレンダリング(内部) */ private renderTemplate; /** * クリア */ clear(): void; } /** * PromptManager シングルトン取得 */ export declare function getPromptManager(): PromptManager; /** * PromptManager リセット(テスト用) */ export declare function resetPromptManager(): void; //# sourceMappingURL=PromptManager.d.ts.map