/**
 * Shared event/task fetching for session polling.
 *
 * Consolidates the duplicate response parsing that was scattered across
 * chat.tsx, session-polling.ts, and session-resume.ts.
 */
import { GuildAPIClient } from './api-client.js';
import { SessionEvent, SessionTask } from './session-events.js';
interface FetchOptions {
    /** Only return events after this event ID (server-side cursor). */
    fromId?: string;
    /** Maximum number of events to return. Default 1000. */
    limit?: number;
}
/**
 * Fetch session events from the API.
 *
 * Uses from_id cursor so callers only fetch new events
 * instead of re-fetching everything on every poll cycle.
 */
export declare function fetchEvents(client: GuildAPIClient, sessionId: string, options?: FetchOptions): Promise<SessionEvent[]>;
/**
 * Fetch session tasks from the API.
 */
export declare function fetchTasks(client: GuildAPIClient, sessionId: string): Promise<SessionTask[]>;
export {};
//# sourceMappingURL=session-events-fetch.d.ts.map