/**
 * Sync Profile Helpers
 *
 * Helper functions for reading and processing sync profiles from config.json
 * Used by external import functionality.
 *
 * Extracted from external-import.ts to reduce file size and improve maintainability.
 *
 * @module cli/helpers/init/sync-profile-helpers
 */
import type { ADOConfig, JiraConfig } from './types.js';
/**
 * Type alias for backwards compatibility
 * JiraConfig in types.ts now includes multi-project support
 */
export type JiraConfigExtended = JiraConfig;
/**
 * Get existing sync profiles from config.json
 * Returns array of "owner/repo" strings if profiles exist
 *
 * CRITICAL FIX (2025-11-26): Also includes parent repo from umbrella config
 * Bug: Parent repo was NOT being imported in umbrella mode - only child repos were processed
 */
export declare function getExistingSyncProfiles(targetDir: string): string[] | null;
/**
 * Check if umbrella mode is enabled from config.json
 * Returns true if sync.profiles exist OR umbrella.enabled is true
 *
 * CRITICAL: Used to force global collision detection even for single-group batches
 */
export declare function isUmbrellaModeFromConfig(targetDir: string): boolean;
/**
 * Get sync profile providers from config.json
 * Returns array of provider names ('github', 'jira', 'ado') from sync profiles
 */
export declare function getSyncProfileProviders(targetDir: string): string[];
/**
 * Load ADO config from sync profile when detectAllConfigs() fails
 * This ensures work items are imported even when the main detection fails
 *
 * CRITICAL FIX (2025-11-29): This fixes the bug where ADO folders were created
 * but no work items were imported because ado was null in the import flow.
 *
 * ENHANCED (2025-11-30): Now supports multi-project ADO setups by collecting
 * ALL ADO profiles and building the projects array for multi-project import.
 */
export declare function loadAdoConfigFromSyncProfile(targetDir: string): ADOConfig | null;
/**
 * Get umbrella project names from config.json
 * Umbrella projects are folder-structure-only (no items imported)
 */
export declare function getUmbrellaProjects(targetDir: string): string[];
/**
 * Load JIRA config from sync profiles in config.json
 *
 * MIRRORS loadAdoConfigFromSyncProfile for JIRA multi-project support.
 *
 * CRITICAL FIX (2025-12-09): This fixes the bug where JIRA folders were created
 * but no work items were imported because jira was null in the import flow.
 *
 * ENHANCED (2025-12-09): Supports multi-project JIRA setups by collecting
 * ALL JIRA profiles and building the projects array for multi-project import.
 */
export declare function loadJiraConfigFromSyncProfile(targetDir: string): JiraConfigExtended | null;
//# sourceMappingURL=sync-profile-helpers.d.ts.map