import type { DRConfig } from '@failzero/config'; export interface PlanStatus { plan: DRConfig; state: 'monitoring' | 'failing_over' | 'failed_over' | 'rolling_back'; monitors: Array<{ name: string; state: 'healthy' | 'degraded' | 'failing' | 'failed'; lastCheck: string; lastResult?: { healthy: boolean; responseTimeMs?: number; error?: string; }; }>; lastFailover?: { timestamp: string; success: boolean; durationSeconds: number; }; } export interface FailoverEvent { id: string; timestamp: string; trigger: 'manual' | 'automatic'; triggeredBy: string; success: boolean; durationSeconds: number; steps: Array<{ name: string; success: boolean; timeSeconds: number; message: string; }>; } export interface ExecutionResult { success: boolean; totalTimeSeconds: number; steps: Array<{ step: string; success: boolean; timeSeconds: number; message: string; error?: string; }>; } export declare class APIClient { private client; constructor(baseURL: string, apiKey?: string); static create(): Promise; /** * Deploy a DR plan to the control plane */ deployPlan(config: DRConfig): Promise; /** * Get status of a DR plan */ getPlanStatus(name: string): Promise; /** * List all DR plans */ listPlans(): Promise; /** * Trigger manual failover */ triggerFailover(name: string, reason?: string, steps?: string[]): Promise; /** * Get failover history */ getFailoverHistory(name: string, limit?: number): Promise; /** * Delete a DR plan */ deletePlan(name: string): Promise; /** * Get approval request details */ getApprovalRequest(token: string): Promise; /** * Approve a failover request */ approveFailover(token: string, approvedBy: string): Promise; } //# sourceMappingURL=api-client.d.ts.map