import type { Failure, Result } from "./contracts.js"; import { type TaskLease } from "./supervisor.js"; export type TaskTranscriptItem = { id: string; kind: "prompt" | "assistant" | "tool-call" | "tool-result" | "response"; source: { sessionId: string; entryId: string; contentIndex?: number; }; toolCallId?: string; }; export type TaskTranscriptPage = { items: Array; nextCursor?: string; omittedEarlier: boolean; }; export type TranscriptError = "UnknownTask" | "ScopeMismatch" | "TranscriptUnavailable"; /** References existing session entries; never copies message text into task history. */ export declare function readTaskTranscript(task: TaskLease, cursor?: string): Promise>>; /** Synchronous history read lets an in-process viewer subscribe without an await gap. */ export declare function readTaskTranscriptSnapshot(task: TaskLease, cursor?: string): Result>; //# sourceMappingURL=transcript.d.ts.map