import type { BareSpecifier, BatchResolvedMap, ImportBatchItem, PathAliases } from '../../types.js';
/**
 * Parse a bare specifier into { packageName, subpath }.
 * Scoped: "@scope/pkg/sub" → { packageName: "@scope/pkg", subpath: "./sub" }
 * Plain:  "pkg/sub"        → { packageName: "pkg", subpath: "./sub" }
 * No sub: "pkg"            → { packageName: "pkg", subpath: "." }
 */
export declare function parseBareSpecifier(specifier: string): BareSpecifier | null;
export declare function resolveViaExports(specifier: string, rootDir: string): string | null;
/** Clear the exports cache (for testing). */
export declare function clearExportsCache(): void;
/**
 * Set the workspace map for a given rootDir.
 * Called by the build pipeline after detecting workspaces.
 */
export declare function setWorkspaces(rootDir: string, map: Map<string, {
    dir: string;
    entry: string | null;
}>): void;
/**
 * Resolve a bare specifier through monorepo workspace packages.
 *
 * For "@myorg/utils" → finds the workspace package dir → resolves entry point.
 * For "@myorg/utils/sub" → finds package dir → tries exports field → filesystem probe.
 *
 * @returns Absolute path to resolved file, or null.
 */
export declare function resolveViaWorkspace(specifier: string, rootDir: string): string | null;
/**
 * Check if a resolved relative path was resolved via workspace detection.
 * Used by computeConfidence to assign high confidence (0.95) to workspace imports.
 */
export declare function isWorkspaceResolved(resolvedPath: string): boolean;
/** Clear workspace caches (for testing). */
export declare function clearWorkspaceCache(): void;
/** Clear the .js → .ts remap cache (for testing). */
export declare function clearJsToTsCache(): void;
/**
 * Convert JS alias format { baseUrl, paths: { pattern: [targets] } }
 * to native format { baseUrl, paths: [{ pattern, targets }] }.
 */
export declare function convertAliasesForNative(aliases: PathAliases | null | undefined): {
    baseUrl: string;
    paths: {
        pattern: string;
        targets: string[];
    }[];
} | null;
declare function resolveImportPathJS(fromFile: string, importSource: string, rootDir: string, aliases: PathAliases | null): string;
declare function computeConfidenceJS(callerFile: string, targetFile: string, importedFrom: string | null): number;
/**
 * Resolve a single import path.
 * Tries native, falls back to JS.
 */
export declare function resolveImportPath(fromFile: string, importSource: string, rootDir: string, aliases: PathAliases | null): string;
/**
 * Compute proximity-based confidence for call resolution.
 * Tries native, falls back to JS.
 */
export declare function computeConfidence(callerFile: string, targetFile: string, importedFrom: string | null): number;
/**
 * Batch resolve multiple imports in a single native call.
 * Returns Map<"fromFile|importSource", resolvedPath> or null when native unavailable.
 */
export declare function resolveImportsBatch(inputs: ImportBatchItem[], rootDir: string, aliases: PathAliases | null, knownFiles?: string[] | null): BatchResolvedMap | null;
export { computeConfidenceJS, resolveImportPathJS };
//# sourceMappingURL=resolve.d.ts.map