/**
 * CI/CD Integration Module
 *
 * Provides awareness and integration with CI/CD pipelines.
 * Features:
 * - GitHub Actions workflow management
 * - Pipeline status monitoring
 * - Automated PR creation from issues
 * - Build artifact management
 */
import { EventEmitter } from "events";
/**
 * CI/CD provider types
 */
export type CICDProvider = "github-actions" | "gitlab-ci" | "jenkins" | "circleci" | "azure-pipelines";
/**
 * Workflow status
 */
export type WorkflowStatus = "success" | "failure" | "pending" | "running" | "cancelled" | "skipped";
/**
 * Workflow run information
 */
export interface WorkflowRun {
    id: string;
    name: string;
    status: WorkflowStatus;
    conclusion?: string;
    branch: string;
    commit: string;
    url?: string;
    startedAt?: Date;
    completedAt?: Date;
    duration?: number;
}
/**
 * Workflow definition
 */
export interface WorkflowDefinition {
    name: string;
    path: string;
    triggers: string[];
    jobs: string[];
    provider: CICDProvider;
}
/**
 * GitHub Actions workflow
 */
export interface GitHubActionsWorkflow {
    name?: string;
    on?: Record<string, unknown> | string | string[];
    jobs?: Record<string, {
        "runs-on"?: string;
        steps?: Array<{
            name?: string;
            uses?: string;
            run?: string;
            with?: Record<string, unknown>;
        }>;
    }>;
}
/**
 * CI/CD configuration
 */
export interface CICDConfig {
    provider: CICDProvider;
    workflowsPath: string;
    autoDetect: boolean;
    monitorRuns: boolean;
}
/**
 * Default CI/CD configuration
 */
export declare const DEFAULT_CICD_CONFIG: CICDConfig;
/**
 * Workflow templates
 */
export declare const WORKFLOW_TEMPLATES: Record<string, string>;
/**
 * CI/CD Integration Manager
 *
 * Manages CI/CD pipeline integration and workflow management.
 */
export declare class CICDManager extends EventEmitter {
    private config;
    private workingDirectory;
    private workflows;
    constructor(workingDirectory: string, config?: Partial<CICDConfig>);
    /**
     * Detect CI/CD provider and workflows
     */
    detectWorkflows(): void;
    /**
     * Load GitHub Actions workflows
     */
    private loadGitHubWorkflows;
    /**
     * Extract triggers from workflow
     */
    private extractTriggers;
    /**
     * Load GitLab CI workflow
     */
    private loadGitLabWorkflow;
    /**
     * Load CircleCI workflow
     */
    private loadCircleCIWorkflow;
    /**
     * Get workflow status using GitHub CLI
     */
    getWorkflowRuns(workflowName?: string, limit?: number): Promise<WorkflowRun[]>;
    /**
     * Map GitHub status to WorkflowStatus
     */
    private mapStatus;
    /**
     * Create a new workflow from template
     */
    createWorkflow(name: string, template: string): string;
    /**
     * Validate workflow syntax
     */
    validateWorkflow(content: string): {
        valid: boolean;
        errors: string[];
    };
    /**
     * Trigger workflow run
     */
    triggerWorkflow(workflowFile: string, ref?: string): Promise<boolean>;
    /**
     * Get list of workflows
     */
    getWorkflows(): WorkflowDefinition[];
    /**
     * Get available templates
     */
    getTemplates(): string[];
    /**
     * Format status for display
     */
    formatStatus(): string;
    /**
     * Generate workflow suggestion based on project
     */
    suggestWorkflow(): string | null;
    /**
     * Get configuration
     */
    getConfig(): CICDConfig;
    /**
     * Update configuration
     */
    updateConfig(config: Partial<CICDConfig>): void;
}
/**
 * Get or create CI/CD manager instance
 */
export declare function getCICDManager(workingDirectory?: string, config?: Partial<CICDConfig>): CICDManager;
/**
 * Initialize CI/CD manager
 */
export declare function initializeCICD(workingDirectory: string, config?: Partial<CICDConfig>): CICDManager;
