/** * Rust module import resolution. * Handles crate::, super::, self:: prefix paths and :: separators. */ import type { ImportResult, ResolveCtx } from './types.js'; /** * Resolve Rust use-path to a file (low-level helper). * Handles crate::, super::, self:: prefixes and :: path separators. */ export declare function resolveRustImportInternal(currentFile: string, importPath: string, allFiles: Set): string | null; /** * Try to resolve a Rust module path to a file. * Tries: path.rs, path/mod.rs, and with the last segment stripped * (last segment might be a symbol name, not a module). */ export declare function tryRustModulePath(modulePath: string, allFiles: Set): string | null; /** Rust: expand grouped imports: use {crate::a, crate::b} and use crate::models::{User, Repo}. */ export declare function resolveRustImport(rawImportPath: string, filePath: string, ctx: ResolveCtx): ImportResult;