import { Source } from './sdk-common.js'; import type { SessionEvent, EventsPageOptions, SessionTreeNode, SessionDescendantsOptions, DescendantEventsOptions, SessionToolCall, SessionFileEdit, EvidencePageOptions, SessionRequest, RequestPageOptions, UserTurnsPageOptions, SessionUserTurn, SessionMarker, FeedChange, ChangesPageOptions } from './contracts.js'; export declare function sessionEvents(sessionId: string, options?: Omit): AsyncGenerator; export declare function getSessionEvents(sessionId: string, options?: Omit): Promise; export declare function sessionUserTurns(source: Source, sessionId: string, options?: Omit): AsyncGenerator; export declare function getSessionUserTurns(source: Source, sessionId: string, options?: Omit): Promise; export declare function sessionToolCalls(source: Source, sessionId: string, options?: Omit): AsyncGenerator; export declare function getSessionToolCalls(source: Source, sessionId: string, options?: Omit): Promise; /** * Lazily walks a session's model requests, oldest first, one bounded page at * a time. */ export declare function sessionRequests(source: Source, sessionId: string, options?: Omit): AsyncGenerator; export declare function getSessionRequests(source: Source, sessionId: string, options?: Omit): Promise; /** * Lazily walks a session's descendants breadth-first over the paged children * primitive, with a bounded node queue instead of materializing a large tree. * Unlinked evidence has no traversable identity and is skipped; use * `getSessionTree` when you need it. */ export declare function sessionDescendants(options: SessionDescendantsOptions): AsyncGenerator; /** * The root session's events followed by each descendant's events, in * descendant traversal order. Every yielded event keeps the `sessionId` of the * session that actually produced it: a child's event is never rewritten as a * parent's. */ export declare function sessionEventsIncludingDescendants(options: DescendantEventsOptions & { sessionId: string; }): AsyncGenerator; /** * Lazily walks a session's markers, oldest first, one bounded page at a time. * Undated markers arrive last. */ export declare function sessionMarkers(source: Source, sessionId: string, options?: Omit): AsyncGenerator; export declare function getSessionMarkers(source: Source, sessionId: string, options?: Omit): Promise; export declare function sessionFileEdits(source: Source, sessionId: string, options?: Omit): AsyncGenerator; export declare function getSessionFileEdits(source: Source, sessionId: string, options?: Omit): Promise; export interface ChangesSinceOptions extends ChangesPageOptions { /** * With `consumer`: commit each page's position once the loop has consumed * every change of that page, so a consumer that throws mid-page resumes at * that page. Off by default; call `commitChanges` yourself to acknowledge * only what you have durably applied. */ commit?: boolean; } /** * Lazily drains the change feed one bounded page at a time until it is * exhausted up to the head each page was bounded to. See `getChangesPage`. */ export declare function changesSince(options?: ChangesSinceOptions): AsyncGenerator; //# sourceMappingURL=pagination.d.ts.map