export function validateDelegates({ filePath, moduleFiles, checkerConfig, allDelegatesFiles, }: { filePath: any; moduleFiles: any; checkerConfig: any; allDelegatesFiles: any; }): { error: string; valid: boolean; } | { valid: boolean; error?: undefined; } | { valid: boolean; type: string; };