import { Request, Response, NextFunction } from 'express';
export interface AuthRequest extends Request {
    userId?: string;
    user?: {
        id: string;
        role: string;
        features?: string[];
    };
}
export declare const isStaffRole: (role?: string) => role is "ADMIN" | "SUB_ADMIN";
export declare const getUserFeatureKeys: (userId: string) => Promise<string[]>;
export declare const userHasAnyFeature: (userId: string, featureKeys: string[]) => Promise<boolean>;
export declare const authenticateToken: (req: AuthRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>>>;
export declare const requireRole: (...roles: string[]) => (req: AuthRequest, res: Response, next: NextFunction) => Response<any, Record<string, any>>;
export declare const requireAdminOrFeatures: (...featureKeys: string[]) => (req: AuthRequest, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>;
//# sourceMappingURL=auth.middleware.d.ts.map