import { type NapiResolveOptions, ResolverFactory } from "oxc-resolver";
import type { ResolvedResult } from "./types.js";
export declare function getRelativeResolver(options: NapiResolveOptions): ResolverFactory;
export declare function resetRelativeResolver(): void;
export declare function getResolver(hashKey: string, options: NapiResolveOptions): ResolverFactory;
export declare function resetResolvers(): void;
/**
 * Resolves relative path imports
 *
 * @param sourceFile - The file that imports the module
 * @param modulePath - The module path to resolve
 * @param options - The resolver options
 * @returns
 */
export declare function resolveRelativePath(sourceFile: string, modulePath: string, options: NapiResolveOptions): ResolvedResult;
/**
 * Resolves a module path
 *
 * @param modulePath - The module path to resolve
 * @param sourceFile - The file that imports the module
 * @param options - The resolver options
 * @returns
 */
export declare function resolveModulePath(sourceFile: string, modulePath: string, options: NapiResolveOptions): ResolvedResult;
