import type { EntityType, ReferenceHit } from '../../shared/entities.js';
import type { PagesService } from './pages.js';
import type { PagesWatcher } from '../fs/watcher.js';
export declare class ReferencesService {
    private pages;
    private watcher;
    constructor(pages: PagesService, watcher: PagesWatcher);
    findReferences(type: EntityType, slug: string): Promise<ReferenceHit[]>;
    findPagesReferencingSlugs(type: EntityType, slugs: Set<string>): Promise<Set<string>>;
    propagateSlugChange(type: EntityType, oldSlug: string, newSlug: string): Promise<{
        changed: string[];
    }>;
    propagateTagSlugChange(oldTagSlug: string, newTagSlug: string): Promise<{
        changed: string[];
    }>;
    private walkPages;
}
