export interface ModelNode {
    name: string;
    file: string;
    fields: Array<{
        name: string;
        type: string;
    }>;
}
export interface ModelEdge {
    from: string;
    to: string;
    field: string;
    relationship: "fk" | "o2o" | "m2m" | "relationship";
}
export interface ModelGraph {
    models: ModelNode[];
    edges: ModelEdge[];
    framework: "django" | "sqlalchemy" | "unknown";
}
/**
 * Extract ORM model relationships from a repository.
 * Scans model classes for Django and SQLAlchemy relationship declarations.
 */
export declare function getModelGraph(repo: string, options?: {
    file_pattern?: string;
    output_format?: "json" | "mermaid";
}): Promise<ModelGraph | {
    mermaid: string;
}>;
//# sourceMappingURL=model-tools.d.ts.map