export function validateStories({ truncatedPath }: { truncatedPath: any; }): { valid: boolean; error: string; type?: undefined; } | { valid: boolean; type: string; error: string; } | { valid: boolean; error?: undefined; type?: undefined; };