import { BuildContext } from './build-constraints'; /** * Extracts import paths from a Go source file using tree-sitter. * * Handles all Go import patterns: * - Single imports: import "fmt" * - Grouped imports: import ("fmt"; "strings") * - Aliased imports: import f "fmt" * - Dot imports: import . "testing" * - Blank imports: import _ "image/png" * - Raw string literals: import `path` * * Filters out the cgo pseudo-import "C". * * Files excluded by their `//go:build` or `// +build` constraints for the * current platform are skipped — they contribute no edges to the graph. * * @param filePath - Path to the Go source file * @param buildCtx - Optional build context override. Defaults to the host's * GOOS/GOARCH; mainly useful for tests. * @returns Array of import paths (excluding "C") */ export declare function extractImports(filePath: string, buildCtx?: BuildContext): Promise;