/**
 * Route Auth Resolver
 *
 * Resolves authentication chains for discovered routes by combining
 * multiple auth signals: direct middleware, mount-level, global,
 * filesystem middleware, route hierarchy, and throwing auth helpers.
 */
import type { ScanFile } from '../shared/types';
import type { RouteMap, MountPoint } from './route-discovery';
import type { MiddlewareAuthConfig } from './middleware-detector';
import type { ModuleGraph } from './module-graph';
/**
 * Resolve auth middleware for all routes in the route map.
 *
 * Resolution sources (priority order):
 * 1. Direct middleware on route definition (already populated by extractors)
 * 2. Mount-level middleware (app.use('/api', authMw))
 * 2.5. Cross-file mount auth (file B imported by A which has mount-level auth)
 * 3. Global middleware (app.use(authMw))
 * 4. Next.js filesystem middleware (via isRouteProtectedByMiddleware)
 * 5. Route hierarchy (via getRouteProtectionContext)
 * 6. Throwing auth helpers in handler body
 *
 * Returns a new RouteMap with authMiddleware populated.
 */
export declare function resolveRouteAuth(routeMap: RouteMap, mountPoints: MountPoint[], files: ScanFile[], middlewareConfig: MiddlewareAuthConfig, moduleGraph?: ModuleGraph): RouteMap;
//# sourceMappingURL=route-auth-resolver.d.ts.map