/** * Governance HTTP Client * * Client for calling the chrono-warp-drive Dynamo governance endpoint. * Handles HTTP requests, retries, and response validation. * * @since 2026-05-11 */ import type { GovernanceCheckResponse, SolarGovernanceCheckRequest, SolarGovernanceCheckResponse, GovernanceClientConfig, GovernanceClientStats } from './types.js'; /** * HTTP client for governance endpoint */ export declare class GovernanceClient { private config; private stats; constructor(config?: Partial); /** * Call any Dynamo MCP tool via call_connected_tool proxy */ private callTool; /** * Check a proposal with solar-enhanced governance (govern_with_solar tool) * * Brings real-time solar context from NOAA GOES into governance decisions, * automatically adjusting vote weight and adding warnings based on current * solar activity (quiet / moderate / active / storm). */ governWithSolar(request: SolarGovernanceCheckRequest): Promise; /** * Evaluate a proposal with standard governance (evaluate_governance tool) * * For purely technical or low-level protocol decisions where external * solar modifiers are undesired. */ evaluateGovernance(params: { proposalId: string; proposalText: string; agentReviews: string[]; codeDiff?: string; historicalSignalIds?: string[]; }): Promise; /** * Make HTTP request with retries and exponential backoff */ private makeJsonRequest; /** * Validate solar governance response structure with range checks */ private isValidSolarResponse; private doJsonRequest; /** * Validate governance response structure */ private isValidResponse; /** * Update average response time */ private updateResponseTime; /** * Delay utility */ private delay; /** * Get client statistics */ getStats(): GovernanceClientStats; /** * Update client configuration */ updateConfig(config: Partial): void; /** * Reset statistics */ resetStats(): void; }