import { Request, Response, NextFunction } from 'ultimate-express'; import { DynamicAuthManager } from '../../authManager'; import { UltimateExpressAuthConfig, UltimateExpressAuthRequest } from './types'; import { InternalAdminManager } from '../../admin/internal-admin-manager'; export declare function userContextMiddleware(req: UltimateExpressAuthRequest, res: Response, next: NextFunction, authManager: DynamicAuthManager, config: UltimateExpressAuthConfig, adminManager?: InternalAdminManager): Promise; export declare function attachNewToken(req: UltimateExpressAuthRequest, res: Response, next: NextFunction, config: UltimateExpressAuthConfig): void; export declare function authGuard(req: UltimateExpressAuthRequest, res: Response, next: NextFunction): any; export declare function extractAdminToken(req: Request): { token: string | null; type: 'session' | 'apikey'; }; //# sourceMappingURL=middleware.d.ts.map