import { createPrismaSchemaBuilder } from "@mrleebo/prisma-ast"; import { PrismaQLRelation } from "./field-relation-collector.js"; export type PrismaQlModelTree = { model: string; relations: PrismaQlRelationNode[]; }; export type PrismaQlJsonRelationTree = { trees: PrismaQlModelTree[]; models: Set; relations: Set; }; export type PrismaQlRelationNode = { relatedModel: string; field: string; type: string; alias?: string; foreignKey?: string; referenceKey?: string; relationTable?: string; inverseField?: string; constraints?: string[]; isSelfRelation?: boolean; isList?: boolean; subTree?: PrismaQlModelTree; }; export type PrismaQLRelationStatistics = { uniqueModels: number; totalRelations: number; maxDepth: number; }; export declare class PrismaQlFieldRelationLogger { relations: PrismaQLRelation[]; setRelations(relations: PrismaQLRelation[]): void; constructor(relations?: PrismaQLRelation[]); buildJsonModelTrees(rootModel: string, relations: PrismaQLRelation[], maxDepth: number, depth?: number, visitedModels?: Set): PrismaQlJsonRelationTree; buildModelTrees(rootModel: string, relations: PrismaQLRelation[], maxDepth: number, depth?: number, visitedModels?: Set): { trees: Record[]; models: Set; relations: Set; }; getRelationStatistics(modelName: string, maxDepth?: number): PrismaQLRelationStatistics; collectRelationStatistics(models: Set, relations: Set, rootModel: string, maxDepth: number): { uniqueModels: number; totalRelations: number; directRelations: number; maxDepth: number; }; private parseSchemaAndSetRelations; provideRelationsFromBuilder(builder: ReturnType): Promise; provideRelationsFromSchema(schema: string): Promise; privideRelationByPrismaPath(prismaPath: string): Promise; generateRelationTreeLog(rootModel: string, maxDepth?: number, relations?: PrismaQLRelation[]): string; } export declare const getRelationStatistics: (relations: PrismaQLRelation[], modelName: string, maxDepth?: number) => PrismaQLRelationStatistics; //# sourceMappingURL=field-relation-logger.d.ts.map