import type { GetPromptResult } from '@modelcontextprotocol/sdk/types.js'; type MessageRole = 'user' | 'assistant'; interface PromptMessage { role: MessageRole; text: string; } /** * Extracts mustache variables ({{ variable_name }}) from a string * @param text - The text to extract variables from * @returns An array of unique variable names */ export declare function extractMustacheVariables(text: string): string[]; /** * Process a prompt message by replacing mustache variables with values * @param message - The message object with role and text * @param args - The arguments map with values for variables * @returns The processed message with variables replaced */ export declare function processPromptMessage(message: PromptMessage, args: Record): { role: MessageRole; content: { type: 'text'; text: string; }; }; /** * Process a system prompt by replacing mustache variables with values * @param systemPrompt - The system prompt text * @param args - The arguments map with values for variables * @returns The processed system prompt with variables replaced */ export declare function processSystemPrompt(systemPrompt: string, args: Record): string; /** * Creates a GetPromptResult by processing system prompt and all messages * @param messages - Array of message objects with role and text * @param args - Arguments to apply to the prompt templates * @param systemPrompt - Optional system prompt text * @returns A formatted GetPromptResult for the MCP server */ export declare function createPromptResult(messages: PromptMessage[] | null | undefined, args: Record, systemPrompt?: string): GetPromptResult; export {};