/**
 * Strip TypeScript-specific syntax to make it executable as JavaScript
 *
 * @param scriptContent - TypeScript/JavaScript code
 * @returns JavaScript code with TypeScript syntax stripped
 */
export declare function stripTypeScript(scriptContent: string): string;
/**
 * Extract variables from script content and add them to context
 *
 * @param scriptContent - The JavaScript/TypeScript code from a <script> tag
 * @param context - The context object to populate with extracted variables
 * @param filePath - Path to the file (for error messages)
 */
export declare function extractVariables(scriptContent: string, context: Record<string, unknown>, filePath: string): Promise<void>;
/**
 * Convert ES module syntax to CommonJS
 *
 * @param scriptContent - ES module style script content
 * @returns CommonJS compatible script
 */
export declare function convertToCommonJS(scriptContent: string, filePath?: string): string;
/**
 * Extract script content from an HTML template
 *
 * @param template - The template string
 * @returns Object with script content and template without script tags
 */
export declare function extractScriptFromTemplate(template: string): {
  scriptContent: string
  templateWithoutScript: string
};
/**
 * Check if script content has any variables to extract
 *
 * @param scriptContent - The script content
 * @returns Whether variables are present
 */
export declare function hasVariables(scriptContent: string): boolean;
