import { DepGraph, DepGraphBuilder } from '@snyk/dep-graph';
import { GoPackage, Options } from './types';
export declare function getDepGraph(root: string, targetFile: string, options?: Options): Promise<DepGraph>;
interface GraphOptions {
    stdlibVersion?: string;
    additionalArgs?: string[];
    includeGoStandardLibraryDeps?: boolean;
    includePackageUrls?: boolean;
    /**
     * Temporary: This option fixes the wrongful identification of a module
     * when it is actually being replaced with a differently named module.
     * This option is being used for a gradual rollout of the fix, and
     * removed once the rollout is complete.
     **/
    useReplaceName?: boolean;
}
export declare function buildDepGraphFromImportsAndModules(root?: string, targetFile?: string, options?: GraphOptions): Promise<DepGraph>;
export declare function buildGraph(depGraphBuilder: DepGraphBuilder, depPackages: string[], packagesByName: {
    [name: string]: GoPackage;
}, currentParent: string, childrenChain: Map<string, string[]>, ancestorsChain: Map<string, string[]>, options: GraphOptions, visited?: Set<string>): void;
export {};
