import type { Mastra } from '@mastra/core/mastra'; import type { CanActivate, ExecutionContext } from '@nestjs/common'; import type { MastraModuleOptions } from '../mastra.module.js'; import { AuthService } from '../services/auth.service.js'; import { RequestContextService } from '../services/request-context.service.js'; import { RouteHandlerService } from '../services/route-handler.service.js'; import { MastraThrottleGuard } from './mastra-throttle.guard.js'; /** * Guard for Mastra routes handled by MastraController. * Runs route matching to avoid authenticating non-Mastra paths, * then enforces auth + rate limiting for matched Mastra routes. */ export declare class MastraRouteGuard implements CanActivate { private readonly mastra; private readonly options; private readonly routeHandler; private readonly requestContext; private readonly authService; private readonly throttleGuard; constructor(mastra: Mastra, options: MastraModuleOptions, routeHandler: RouteHandlerService, requestContext: RequestContextService, authService: AuthService, throttleGuard: MastraThrottleGuard); canActivate(context: ExecutionContext): Promise; } //# sourceMappingURL=mastra-route.guard.d.ts.map