import { ChildProcess } from 'child_process'; export interface StudioProcess { pid: number; port: number; projectName: string; process: ChildProcess; } export declare function findAvailablePort(startPort?: number, endPort?: number): Promise; export declare function isPortInUse(port: number): Promise; export declare function killProcessOnPort(port: number): Promise; export declare function addRunningStudio(studio: StudioProcess): void; export declare function getRunningStudios(): StudioProcess[]; export declare function clearStudioTracking(): void; export declare function removeDeadStudio(port: number): void; export declare function updateProjectDuration(projectPath: string, durationSeconds: number): Promise; interface AudioConfig { enabled: boolean; elevenLabsApiKey?: string; mubertApiKey?: string; } export declare function getAudioConfig(): AudioConfig; export declare function setAudioConfig(config: AudioConfig): Promise; export declare function isAudioEnabled(): boolean; export declare function getBaseDirectory(): string; export declare function getProjectPath(name: string): string; /** * SAFE version of ensureProperExport that doesn't use validateAndCleanJSX * Used only for create_project and auto-recovery to prevent corruption */ export declare function ensureProperExportSafe(jsxContent: string): string; export declare function createRemotionProject(projectPath: string, jsx: string): Promise; /** * Validate if a JSX file appears to be complete and valid * Used for automatic interruption recovery */ export declare function validateVideoCompositionFile(jsxContent: string): { isValid: boolean; issues: string[]; }; /** * Check if a project appears to be partially created or corrupted * Returns detailed analysis for automatic recovery */ export declare function checkProjectIntegrity(name: string): Promise<{ exists: boolean; isComplete: boolean; issues: string[]; canRecover: boolean; needsRecovery: boolean; }>; /** * Automatically recover/complete a partially created project * Called automatically by editProject when needed */ export declare function autoRecoverProject(name: string, jsx: string, duration?: number): Promise<{ success: boolean; actions: string[]; message: string; }>; /** * Create timestamped backup of VideoComposition.tsx before editing * Protects users from losing working animations */ export declare function createProjectBackup(name: string): Promise<{ success: boolean; backupPath?: string; message: string; }>; /** * List all available backups for a project */ export declare function listProjectBackups(name: string): Promise<{ success: boolean; backups: string[]; message: string; }>; /** * Restore VideoComposition.tsx from a specific backup */ export declare function restoreProjectBackup(name: string, backupFilename: string): Promise<{ success: boolean; message: string; }>; /** * Clean old backups, keeping only the most recent ones */ export declare function cleanOldBackups(name: string, keepCount?: number): Promise<{ success: boolean; deleted: number; message: string; }>; interface VulnerabilityReport { overallRisk: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL'; riskScore: number; issues: VulnerabilityIssue[]; recommendations: string[]; } interface VulnerabilityIssue { category: string; severity: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL'; description: string; location: string; autoFixable: boolean; suggestedFix?: string; } /** * REMOVED: This function has been eliminated and replaced with Design Prism Enhancement System * The new system provides real professional improvements instead of fake grades */ /** * Comprehensive vulnerability detection for Remotion projects * Detects animation logic errors, timing issues, security vulnerabilities */ export declare function detectProjectVulnerabilities(name: string): Promise; /** * Get comprehensive MCP server status including version verification * Single tool to verify the server is using the correct npm version */ export declare function getMCPStatusInfo(): Promise; export {}; //# sourceMappingURL=utils-clean.d.ts.map