/// <reference types="qs" />
import { Request, NextFunction, Response } from "express";
/**
 * Middleware function that validates a JWT token.
 * @param TokenFieldName - The name of the token field in the request headers, body, query, or params.
 * @param SecretToken - The secret token used to verify the JWT.
 * @returns The middleware function.
 */
declare const _default: (TokenFieldName: string, SecretToken: string, bearerToken?: boolean, excludingText?: string) => (Request: Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, Response: Response<any, Record<string, any>>, Next: NextFunction) => Promise<void>;
export default _default;
