/**
 * Orphan Entity Detection Service
 *
 * Finds entities with zero inbound wikilink references across the entire graph.
 * These are "orphans" — they exist but nothing points to them.
 *
 * Supports filtering by entity type, minimum age, and actions like
 * tombstoning (sync-state) or deletion.
 */
import { WorkspaceManager } from '../core/workspace-manager.js';
export interface OrphanEntity {
    repo: string;
    entityType: string;
    entityId: string;
    createdAt?: string;
    name?: string;
}
export interface OrphanFilters {
    entityTypes?: string[];
    minAgeDays?: number;
    repos?: string[];
}
export interface OrphanResult {
    orphans: OrphanEntity[];
    totalScanned: number;
    totalOrphans: number;
}
/**
 * Find all orphan entities — entities with zero inbound wikilink references.
 */
export declare function findOrphans(manager: WorkspaceManager, filters?: OrphanFilters): OrphanResult;
