import { ApiClient } from '../api.js'; import { NetworkClient } from '../activities/client.js'; import { Activity } from '../types.js'; import { ListOptions } from '../activities/types.js'; import { Platform } from '../platform/types.js'; /** * Concrete implementation of NetworkClient that communicates with the Jules API. * Handles fetching activities and streaming them via polling. */ export declare class NetworkAdapter implements NetworkClient { private apiClient; private sessionId; private pollingIntervalMs; private platform; constructor(apiClient: ApiClient, sessionId: string, pollingIntervalMs: number | undefined, platform: Platform); /** * Fetches a single activity from the API. */ fetchActivity(activityId: string): Promise; /** * Lists activities from the API with pagination. */ listActivities(options?: ListOptions): Promise<{ activities: Activity[]; nextPageToken?: string; }>; /** * Polls the API for new activities and yields them. * This stream never ends unless the process is terminated. */ rawStream(): AsyncIterable; }