import { type HttpContext } from "./http.js"; import { type ThreadWatchEvent, type ThreadWatchOptions } from "./threads-watch.js"; import type { KernelRecord } from "./types.js"; export interface ThreadListOptions { cursor?: string; limit?: number; namespace?: string; } export interface ThreadListResult { data: Array<{ id: string; last_clock?: number; namespace?: string; record_count?: number; }>; next_cursor?: string | null; } export interface ThreadRecordsOptions { limit?: number; since?: number; } export interface ThreadStateResult { thread: string; state: Record; last_clock?: number; } export type ThreadProjectFormat = "tui" | "messages"; export declare class ClientThreads { private readonly ctx; constructor(ctx: HttpContext); list(opts?: ThreadListOptions): Promise; records(threadId: string, opts?: ThreadRecordsOptions): Promise; state(threadId: string): Promise; project(threadId: string, format?: ThreadProjectFormat): Promise>; watch(threadId: string, opts?: ThreadWatchOptions): AsyncIterable; }