/** * HumancyHttpClient - HTTP client for humancy-cloud REST API * * Provides REST API communication with retry logic and authentication. */ import { type HttpClientConfig, type CreateDecisionApiRequest, type DecisionCreatedResponse, type DecisionApiResponse } from './types.js'; /** * HTTP client for communicating with humancy-cloud API */ export declare class HumancyHttpClient { private readonly config; constructor(config?: Partial); /** * Create a new decision request * * POST /decisions */ createDecision(request: CreateDecisionApiRequest): Promise; /** * Get decision details by ID * * GET /decisions/:id */ getDecision(id: string): Promise; /** * Get the SSE events URL for a decision * Includes token as query parameter since SSE endpoints use query-based auth */ getEventsUrl(decisionId: string): string; /** * Get the base URL */ getBaseUrl(): string; /** * Check if client is authenticated */ isAuthenticated(): boolean; /** * Get authorization headers */ getAuthHeaders(): Record; /** * Get common request headers */ private getHeaders; /** * Fetch with timeout using AbortController */ private fetchWithTimeout; /** * Retry logic with exponential backoff for transient failures */ private withRetry; /** * Check if an error is retriable */ private isRetryable; /** * Sleep for specified milliseconds */ private sleep; } //# sourceMappingURL=client.d.ts.map