/** * Security utilities for ARK CLI */ export declare class SecurityUtils { /** * Validate that a path is safe and doesn't contain directory traversal attempts */ static validatePath(filePath: string, context?: string): void; /** * Ensure a directory path is safe to create/write to */ static validateOutputPath(outputPath: string, baseDir: string): void; /** * Sanitize file names to prevent issues */ static sanitizeFileName(fileName: string): string; /** * Validate template content to prevent code injection */ static validateTemplateContent(content: string, templatePath: string): void; /** * Safely create directories with proper permissions */ static createDirectorySafe(dirPath: string, baseDir: string): Promise; /** * Safely write files with proper permissions */ static writeFileSafe(filePath: string, content: string, baseDir: string): Promise; /** * Validate environment variables for safety */ static sanitizeEnvironmentValue(value: string, varName: string): string; /** * Validate API keys and secrets */ static validateSecret(secret: string, secretType: string): void; }