import type { LoadResult, LoaderFn } from '../types';
import type { ContentFs } from './content-fs';
import type { MarkdocError } from '../../types/index.js';
export declare class Cache {
    #private;
    private fs;
    /**
     * Map of errors. Key is a cache key.
     */
    errors: Map<string, (Error | MarkdocError)[]>;
    constructor(fs: ContentFs);
    load<T>(resource: string, loaderObjOrName: string | {
        name: string;
        loader: LoaderFn<T>;
    }, depsArray?: string[]): Promise<LoadResult<T>>;
    setLoaders(loaders: Record<string, LoaderFn>): void;
    delete(resource: string, loaderId?: string): void;
}
//# sourceMappingURL=cache.d.ts.map