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