/**
 * Local cache for URL imports
 */
import { CachedItem, CacheOptions } from './types.js';
export declare class LocalCache {
    private cacheDir;
    private defaultTTL;
    constructor(cacheDir?: string, defaultTTL?: number);
    /**
     * Get cached content for a URL
     */
    get(url: string): Promise<CachedItem | null>;
    /**
     * Store content in cache
     */
    put(url: string, content: string, options?: CacheOptions): Promise<void>;
    /**
     * Remove cached content
     */
    remove(url: string): Promise<void>;
    /**
     * Clear all cached content
     */
    clear(): Promise<void>;
    /**
     * Get cache statistics
     */
    stats(): Promise<{
        size: number;
        count: number;
        oldestEntry: number | null;
        newestEntry: number | null;
    }>;
    /**
     * Get the cache directory path
     */
    getCacheDir(): string;
    /**
     * List all cached URLs
     */
    list(): Promise<Array<{
        url: string;
        cached: number;
        expires: number;
        size: number;
    }>>;
    /**
     * Generate hash for URL (used as filename)
     */
    private hashUrl;
    /**
     * Detect content type from URL or content
     */
    private detectContentType;
}
//# sourceMappingURL=cache.d.ts.map