artillery-performance-mcp-server
Version:
MCP server for performance testing with Artillery.io
27 lines (26 loc) • 915 B
TypeScript
/**
* Read a template file from the templates directory
* @param filename Template filename
* @returns Template content as string
*/
export declare function readTemplate(filename: string): string;
/**
* Write content to a file
* @param filePath Path to write the file
* @param content Content to write
*/
export declare function writeFile(filePath: string, content: string): void;
/**
* Generate a unique filename for a test
* @param prefix Prefix for the filename
* @param extension File extension
* @returns Unique filename
*/
export declare function generateUniqueFilename(prefix: string, extension?: string): string;
/**
* Simple template engine to replace placeholders in templates
* @param template Template string
* @param data Data object with values to replace
* @returns Processed template
*/
export declare function processTemplate(template: string, data: Record<string, any>): string;