import type { Import, Mode, PathAliasMap } from './types.js'; /** * Processes a file by extracting its imports, applying fixes, and writing the fixed code back to the file. * * @param filePath - The path to the file to be processed. * @param dependencies - The dependencies to be considered when extracting imports. * @param mode - The extraction mode ('regex' or 'ast'). */ export declare const processFile: (filePath: string | Buffer, dependencies: string[], mode?: Mode) => Promise; /** * Resolves a path alias to its actual file path * * @param specifier - The import specifier * @param aliases - Path alias mapping from tsconfig */ export declare const resolvePathAlias: (specifier: string, aliases: PathAliasMap) => string | null; /** * Fixes imports in the source code by applying the necessary changes. * * @param code - The original source code. * @param imports - An array of parsed import objects. * @param dirPath - The directory path of the file being processed. * @param pathAliases - Path alias mappings from tsconfig, if available */ export declare const applyFixes: (code: string, imports: Import[], dirPath: string, pathAliases?: PathAliasMap | null) => Promise;