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