/**
 * Import Resolver for SpecVerse v3.1
 *
 * Resolves imports from:
 * 1. Local files (relative or absolute paths)
 * 2. NPM packages (using Node.js resolution)
 * 3. URLs (with local caching)
 */
import { ImportSpec, ResolvedImport, ImportResolverOptions } from './types.js';
export declare class ImportResolver {
    private cache;
    private options;
    private debug;
    constructor(options?: ImportResolverOptions);
    /**
     * Resolve an import specification
     */
    resolve(importSpec: ImportSpec, basePath?: string): Promise<ResolvedImport>;
    /**
     * Resolve a local file
     */
    private resolveFile;
    /**
     * Check if a file exists
     */
    private fileExists;
    /**
     * Resolve a SpecVerse built-in library
     */
    private resolveSpecVerseLibrary;
    /**
     * Resolve a SpecVerse library from local files
     */
    private resolveLocalSpecVerseLibrary;
    /**
     * Resolve an NPM package
     */
    private resolveNpmPackage;
    /**
     * Resolve a URL
     */
    private resolveUrl;
    /**
     * Find package root directory
     */
    private findPackageRoot;
    /**
     * Find SpecVerse main file in package
     */
    private findSpecverseMain;
    /**
     * Resolve from SpecVerse Registry
     */
    private resolveFromRegistry;
    /**
     * Resolve content from registry URL (handles JSON wrapper)
     */
    private resolveRegistryContent;
    /**
     * Convert @specverse/library names to registry library names
     */
    private convertToRegistryName;
    /**
     * Check if string is a URL
     */
    private isUrl;
    /**
     * Check if string looks like an NPM package
     */
    private isNpmPackage;
    /**
     * Detect content type from path or content
     */
    private detectContentType;
    /**
     * Clear cache
     */
    clearCache(): Promise<void>;
    /**
     * Get cache statistics
     */
    getCacheStats(): Promise<{
        size: number;
        count: number;
        oldestEntry: number | null;
        newestEntry: number | null;
    }>;
    /**
     * List cached URLs
     */
    listCached(): Promise<{
        url: string;
        cached: number;
        expires: number;
        size: number;
    }[]>;
    /**
     * Get the cache directory path
     */
    getCacheDir(): string;
}
//# sourceMappingURL=resolver.d.ts.map