import { collectDependencies } from '../detection-utils.js';
const NEO4J_DEPS = [
    'neo4j-driver',
    'neo4j',
    'py2neo',
    'neo4j-go-driver',
    'neomodel',
    'neo4j-java-driver',
];
const ARANGO_DEPS = ['arangojs', 'python-arango', 'arangodb-php', 'arangodb'];
const NEPTUNE_DEPS = [
    'gremlin',
    '@aws-sdk/client-neptune',
    'neptune-python-utils',
    'amazon-neptune-tools',
];
const DGRAPH_DEPS = ['dgraph-js', 'dgraph-js-http', 'pydgraph', 'dgraph4j'];
export async function detectGraphDb(projectPath) {
    const deps = await collectDependencies(projectPath);
    // Neo4j
    if (NEO4J_DEPS.some((d) => deps.has(d))) {
        return 'neo4j';
    }
    // ArangoDB
    if (ARANGO_DEPS.some((d) => deps.has(d))) {
        return 'arangodb';
    }
    // Neptune (AWS — via Gremlin/OpenCypher + AWS SDK)
    if (NEPTUNE_DEPS.some((d) => deps.has(d))) {
        return 'neptune';
    }
    // Dgraph
    if (DGRAPH_DEPS.some((d) => deps.has(d))) {
        return 'dgraph';
    }
    return null;
}
//# sourceMappingURL=graph-db-detector.js.map