export default function requireOrImport(filePath: string, { middleware }?: any): Promise;