/**
 * Duplicate Scanner
 *
 * Scans for existing feature folders and checks for duplicates.
 *
 * @module importers/item-converter/duplicate-scanner
 * @since v1.0.115
 */
import type { ExternalItem } from './types.js';
import type { DuplicateDetector } from '../duplicate-detector.js';
import type { Logger } from '../../utils/logger.js';
/**
 * Find existing feature folders for item groups by scanning FEATURE.md files
 *
 * CRITICAL FIX (2025-12-05): Prevents duplicate FS-XXXE folder creation on re-import
 *
 * For GitHub items grouped by sourceRepo, this finds any existing FS-XXXE folder
 * that has the same source_repo in its FEATURE.md frontmatter.
 *
 * @param itemGroups - Groups of items from groupItemsByFeature()
 * @param baseDir - Base directory to scan
 * @param logger - Optional logger
 * @returns Map from groupKey to existing feature ID (e.g., "anton-abyzov/specweave" -> "FS-111E")
 */
export declare function findExistingFeatureFolders(itemGroups: Map<string, ExternalItem[]>, baseDir: string, logger?: Logger): Promise<Map<string, string>>;
/**
 * Check if a group has at least one non-duplicate item
 *
 * CRITICAL FIX (2025-12-05): Prevents empty folder creation when all items are duplicates
 *
 * @param groupItems - Items in a group
 * @param duplicateDetector - Duplicate detector instance (or null if disabled)
 * @returns True if at least one item is NOT a duplicate
 */
export declare function groupHasNonDuplicates(groupItems: ExternalItem[], duplicateDetector: DuplicateDetector | null): Promise<boolean>;
//# sourceMappingURL=duplicate-scanner.d.ts.map