/**
 * Root repo detection and connection prompt for init flow
 *
 * Auto-detects the workspace root's GitHub repository from:
 * 1. Git remote URL (via detectProvider)
 * 2. package.json repository field
 * 3. package.json @scope/name
 *
 * Part of 0640-init-ux-nonempty-workspace
 */
import type { SupportedLanguage } from '../../../core/i18n/types.js';
export interface RootRepoInfo {
    owner: string;
    repo: string;
    source: 'git-remote' | 'package-json' | 'user-input';
}
/**
 * Auto-detect root repo from git remote or package.json.
 *
 * Cascade:
 * 1. detectProvider() → GitHub owner/repo
 * 2. package.json → repository string or object URL
 * 3. package.json → @scope/name
 * 4. null
 */
export declare function detectRootRepo(targetDir: string): RootRepoInfo | null;
/**
 * Interactive prompt to connect workspace root to a GitHub repo.
 *
 * - CI mode: auto-detect only, no prompts
 * - Interactive: auto-detect → confirm → manual fallback
 */
export declare function promptRootRepoConnection(targetDir: string, language: SupportedLanguage, isCI: boolean): Promise<RootRepoInfo | null>;
//# sourceMappingURL=root-repo-detection.d.ts.map