import type { LearnedRegistryEntry, LearnedRegistryType } from '../types/index.js';
/**
 * Detect if a name is unknown (not present in the list of existing IDs).
 * Comparison is case-insensitive and space-normalized.
 */
export declare function detectUnknown(name: string, existingIds: string[]): boolean;
/**
 * Build a new LearnedRegistryEntry for an unknown technology/pattern.
 * Entry is initially marked 'pending_verification' and unverified.
 */
export declare function buildLearnedEntry(name: string, registry: LearnedRegistryType, data: Record<string, unknown>, projectId: string): LearnedRegistryEntry;
/**
 * Apply LRU eviction to keep the total number of learned entries under the limit.
 * Verified entries are always kept; unverified are evicted by oldest discovery.
 */
export declare function applyLearnedLimit(entries: LearnedRegistryEntry[]): LearnedRegistryEntry[];
/**
 * Mark an entry as verified by ID, transitioning its source to 'learned'.
 * Returns updated entries list and a flag indicating if the entry was found.
 */
export declare function markVerified(entries: LearnedRegistryEntry[], entryId: string): {
    updated: LearnedRegistryEntry[];
    found: boolean;
};
//# sourceMappingURL=registry-extender.d.ts.map