/** * Azure DevOps Integration for Issue Tracker Setup * * Handles Azure DevOps authentication and connection validation * * @module cli/helpers/issue-tracker/ado */ import type { AzureDevOpsCredentials, ExistingCredentials, ValidationResult } from './types.js'; import type { SupportedLanguage } from '../../../core/i18n/types.js'; /** * Check for existing Azure DevOps credentials * * @param projectPath - Path to project root * @returns Existing credentials or null */ export declare function checkExistingAzureDevOpsCredentials(projectPath: string): Promise; /** * Prompt user for Azure DevOps credentials with cache support * * Caches last used organization/project for quick re-initialization * Multi-project selection for enterprise users (AC-US5-01 to AC-US5-05) * * @param language - User's language * @param projectRoot - Project root path (optional, for cache manager) * @returns Credentials or null if skipped */ export declare function promptAzureDevOpsCredentials(language: SupportedLanguage, projectRoot?: string): Promise; /** * Validate Azure DevOps connection * * Tests authentication and returns project information * Handles rate limiting with retry logic * * Supports both single-project and multi-project credentials: * - Single: Uses `credentials.project` * - Multi: Validates the default project from `credentials.projects` * * @param credentials - Azure DevOps credentials * @param maxRetries - Maximum retry attempts (default: 3) * @returns Validation result */ export declare function validateAzureDevOpsConnection(credentials: AzureDevOpsCredentials, maxRetries?: number): Promise; /** * Get Azure DevOps environment variables for .env file * * IMPORTANT: Only PAT goes in .env (secret). Non-secrets go to config.json. * See writeSyncConfig() for config.json structure. * * @param credentials - Azure DevOps credentials * @returns Array of key-value pairs for .env */ export declare function getAzureDevOpsEnvVars(credentials: AzureDevOpsCredentials): Array<{ key: string; value: string; }>; /** * Create ADO project folder structure in .specweave/docs/internal/specs/ * * Supports both single-project and multi-project configurations (AC-US5-05) * * @param projectPath - Path to project root * @param credentials - ADO credentials with org, project(s), areaPaths */ export declare function createAdoProjectFolders(projectPath: string, credentials: AzureDevOpsCredentials): void; /** * Show Azure DevOps setup complete message * * @param language - User's language */ export declare function showAzureDevOpsSetupComplete(language: SupportedLanguage): void; /** * Show Azure DevOps setup skipped message * * @param language - User's language */ export declare function showAzureDevOpsSetupSkipped(language: SupportedLanguage): void; export { autoDiscoverAdoProjects } from './ado-auto-discover.js'; //# sourceMappingURL=ado.d.ts.map