/** * Deployment configuration */ export interface DeploymentConfig { platform?: string; environment?: string; domain?: string; } /** * Deployment result */ export interface DeploymentResult { success: boolean; url?: string; deploymentId?: string; error?: string; } /** * Deployment status */ export interface DeploymentStatus { status: string; url: string; id: string; createdAt: string; } /** * Deployment history item */ export interface DeploymentHistoryItem { id: string; url: string; status: string; createdAt: string; } /** * Rollback result */ export interface RollbackResult { success: boolean; message: string; url?: string; } /** * Deployment manager for deploying applications to various platforms */ export declare class DeploymentManager { private config; /** * Create a new deployment manager * @param config Deployment configuration */ constructor(config: DeploymentConfig); /** * Deploy the application * @returns Deployment result */ deploy(): Promise; /** * Get the status of the latest deployment * @returns Deployment status */ getStatus(): Promise; /** * Get the deployment history * @returns Deployment history */ getHistory(): Promise; /** * Roll back to a previous deployment * @param deploymentId Deployment ID to roll back to * @returns Rollback result */ rollback(deploymentId: string): Promise; /** * Ensure the platform CLI is installed */ private ensurePlatformCLI; /** * Load deployment configuration * @returns Deployment configuration */ private loadConfig; /** * Set environment variables for deployment * @param config Deployment configuration */ private setEnvironmentVariables; /** * Build the application */ private build; /** * Deploy the application to the selected platform * @returns Deployment result */ private deployToPlatform; /** * Deploy the application to Vercel * @returns Deployment result */ private deployToVercel; /** * Deploy the application to Netlify * @returns Deployment result */ private deployToNetlify; /** * Deploy the application to AWS * @returns Deployment result */ private deployToAWS; /** * Configure a custom domain * @param domain Custom domain */ private configureDomain; /** * Get deployment status from Vercel * @returns Deployment status */ private getVercelStatus; /** * Get deployment status from Netlify * @returns Deployment status */ private getNetlifyStatus; /** * Get deployment status from AWS * @returns Deployment status */ private getAWSStatus; /** * Get deployment history from Vercel * @returns Deployment history */ private getVercelHistory; /** * Get deployment history from Netlify * @returns Deployment history */ private getNetlifyHistory; /** * Get deployment history from AWS * @returns Deployment history */ private getAWSHistory; /** * Roll back to a previous Vercel deployment * @param deploymentId Deployment ID to roll back to * @returns Rollback result */ private rollbackVercel; /** * Roll back to a previous Netlify deployment * @param deploymentId Deployment ID to roll back to * @returns Rollback result */ private rollbackNetlify; /** * Roll back to a previous AWS deployment * @param deploymentId Deployment ID to roll back to * @returns Rollback result */ private rollbackAWS; /** * Parse deployment URL from Vercel output * @param output Vercel output * @returns Deployment URL */ private parseVercelDeploymentUrl; /** * Parse deployment ID from Vercel output * @param output Vercel output * @returns Deployment ID */ private parseVercelDeploymentId; /** * Parse deployment URL from Netlify output * @param output Netlify output * @returns Deployment URL */ private parseNetlifyDeploymentUrl; /** * Parse deployment ID from Netlify output * @param output Netlify output * @returns Deployment ID */ private parseNetlifyDeploymentId; }