export default function checkAuth(req: ReqType, res: ResType, proceed: () => void): Promise;