/**
 * Route Hierarchy Utility
 * Understands framework-specific route hierarchy conventions
 *
 * This addresses false positives where routes inside authenticated layouts
 * are flagged for "missing auth" when they inherit protection from parents.
 *
 * Key insight: Modern frameworks use layouts/middleware that protect entire
 * route subtrees - child routes inherit this protection.
 */
export interface RouteProtectionContext {
    /** Whether this route is in a protected hierarchy */
    isInProtectedHierarchy: boolean;
    /** Sources of protection (e.g., ["Remix _authenticated+ layout"]) */
    protectionSource: string[];
    /** Framework detected */
    framework?: 'remix' | 'nextjs' | 'sveltekit' | 'nuxt' | 'unknown';
    /** Whether this is in an admin section */
    isAdminRoute: boolean;
}
/**
 * Get route protection context for a file path
 *
 * @param filePath - The full file path to analyze
 * @returns RouteProtectionContext with protection information
 */
export declare function getRouteProtectionContext(filePath: string): RouteProtectionContext;
/**
 * Check if a file path is inside a protected route hierarchy
 *
 * @param filePath - The full file path
 * @returns true if the route is protected by its hierarchy
 */
export declare function isProtectedByRouteHierarchy(filePath: string): boolean;
/**
 * Check if a file path is inside an admin route section
 *
 * @param filePath - The full file path
 * @returns true if this is an admin route
 */
export declare function isAdminRoute(filePath: string): boolean;
/**
 * Check if a component is likely used only within authenticated routes
 * Useful for components in /components/admin/ or similar
 *
 * @param filePath - The full file path
 * @returns true if this component is likely only used in authenticated contexts
 */
export declare function isAuthenticatedOnlyComponent(filePath: string): boolean;
//# sourceMappingURL=route-hierarchy.d.ts.map