export function validateImports(importDeclarations: any): { error: string; valid: boolean; } | { valid: boolean; error?: undefined; };