/** * Script Generation Utilities * * This module provides utilities for generating and formatting test scripts * with TestChimp-specific markers and comments. */ /** * TestChimp smart test comment that should be added to all generated scripts */ export declare const TESTCHIMP_SMART_COMMENT = "/*\n\nThis is a TestChimp Smart Test.\nVersion: 1.0\n\n*/"; /** * Generates TestChimp smart test comment with optional repair advice and hashtags * @param repairAdvice Optional repair advice to include in the comment * @param hashtags Optional hashtags for semantic grouping * @returns The complete comment block */ export declare function generateTestChimpComment(repairAdvice?: string, hashtags?: string[]): string; /** * Extracts hashtags from an existing TestChimp comment * @param script The script content containing the comment * @returns Array of hashtags found in the comment */ export declare function extractHashtagsFromComment(script: string): string[]; /** * Adds the TestChimp smart test comment to the beginning of a script * @param script The original script content * @param repairAdvice Optional repair advice to include in the comment * @param hashtags Optional hashtags for semantic grouping * @returns The script with TestChimp comment prepended */ export declare function addTestChimpComment(script: string, repairAdvice?: string, hashtags?: string[]): string; /** * Generates a complete test script with TestChimp comment, imports, and test structure * @param testName The name of the test * @param steps Array of test steps with descriptions and commands * @param repairAdvice Optional repair advice to include in the comment * @param hashtags Optional hashtags for semantic grouping * @returns The complete test script */ export declare function generateTestScript(testName: string, steps: Array<{ stepNumber: number; description: string; playwrightCommand?: string; playwrightCommands?: string[]; success?: boolean; error?: string; }>, repairAdvice?: string, hashtags?: string[]): string; /** * Checks if a script is a TestChimp managed/smart test * Prioritizes detection of "Smart Test" format while maintaining backward compatibility with "Managed Test" * @param script The script content to check * @returns True if the script contains the TestChimp smart/managed test comment */ export declare function isTestChimpManagedTest(script: string): boolean; //# sourceMappingURL=script-utils.d.ts.map