import { DescriptorRelationship, NestedRoute } from "../types/template-data.interface"; /** * Generate nested route configurations for all relationships * * Nested routes allow querying entities by their relationships. * For example: GET /discussions/:discussionId/comments * * NOTE: Routes are NOT generated for relationships with contextKey (e.g., Author) * because these are system-set and not queryable by users. * * When a relationship has an alias (e.g., CreatedBy targeting User), the route uses * the alias-specific meta endpoint instead of the base entity meta, producing unique * paths like GET /created-by/:createdById/tasks instead of GET /users/:userId/tasks. * * @param relationships - Array of descriptor relationships * @param thisEntity - Current entity info (endpoint and nodeName) * @returns Array of nested route configurations */ export declare function generateNestedRoutes(relationships: DescriptorRelationship[], thisEntity: { endpoint: string; nodeName: string; }, conflictingAliases?: Set): NestedRoute[]; /** * Check if a relationship should have a nested route * * @param rel - Descriptor relationship * @returns true if nested route should be generated */ export declare function shouldGenerateNestedRoute(rel: DescriptorRelationship): boolean; //# sourceMappingURL=nested-route-generator.d.ts.map