export default function authMiddleware(ctx: any): Promise;