/** * Connection management service for NeuBird API * Handles listing connections, getting connection details, and managing connection cache */ import { HttpClient } from '../utils/http-client.js'; import { AuthenticationService } from './auth.service.js'; import { Connection } from '../types/neubird.js'; /** * Connection management service */ export declare class ConnectionService { private httpClient; private authService; private config; private connectionCache; private readonly cacheTtlMs; constructor(httpClient: HttpClient, authService: AuthenticationService); /** * List all connections, using cache if available */ listConnections(includeInactive?: boolean): Promise; /** * List connections filtered by project UUID */ listConnectionsByProject(projectUuid: string): Promise; /** * Get a specific connection by UUID */ getConnection(connectionUuid: string): Promise; /** * Wait for a connection to reach SYNCED state */ waitForConnectionSync(connectionUuid: string, maxWaitSeconds?: number, pollIntervalSeconds?: number): Promise<{ connection_uuid: string; sync_state: string; time_elapsed_seconds: number; synced: boolean; }>; /** * Check if connection cache is still valid */ private isCacheValid; /** * Filter connections by sync state */ private filterConnections; /** * Clear connection cache (useful for testing or forced refresh) */ clearCache(): void; }