perf-lens
Version:
AI-powered frontend performance optimizer
43 lines • 1.22 kB
TypeScript
import { type PromptKey } from './promptConfig.js';
/**
* Manages system prompts for AI interactions
*/
export declare class PromptManager {
private static instance;
private prompts;
private initialized;
private constructor();
/**
* Gets the singleton instance of PromptManager
*/
static getInstance(): PromptManager;
/**
* Loads prompts from the default configuration
*/
private loadPrompts;
/**
* Gets a prompt by its key
* @param key - The key of the prompt to retrieve
* @returns The prompt content
* @throws Error if the prompt is not found
*/
getPrompt(key: PromptKey): string;
/**
* Updates a prompt's content
* @param key - The key of the prompt to update
* @param content - The new content for the prompt
*/
updatePrompt(key: PromptKey, content: string): void;
/**
* Checks if a prompt exists
* @param key - The key to check
* @returns True if the prompt exists
*/
hasPrompt(key: PromptKey): boolean;
/**
* Gets all available prompt keys
* @returns Array of prompt keys
*/
getPromptKeys(): PromptKey[];
}
//# sourceMappingURL=promptManager.d.ts.map