import { G as GraphNode, a as GraphEdge } from '../../types-CWzZwh1B.js';

/**
 * Child-process worker for parsing and extracting Java files in batch.
 *
 * Runs as: node scan-worker.js <input.json> <output.json> <includeSnippets>
 *
 * Input:  JSON array of file paths
 * Output: JSON array of { filePath, nodes, edges, status }
 *
 * When this process exits, the OS reclaims ALL native memory (tree-sitter ASTs).
 */

interface WorkerResult {
    filePath: string;
    nodes: GraphNode[];
    edges: GraphEdge[];
    status: "complete" | "regex_fallback" | "parse_failed";
}

export type { WorkerResult };
