import { SessionState, TimelineEntry } from "../../lib/sessionModel.mjs"; import { TranscriptTurnRow } from "../../lib/transcriptTurns.mjs"; import { WebPluginSlotProps } from "@agimon-ai/po-core/web"; import { ComponentType, ReactNode } from "react"; import { Store } from "@tanstack/store"; //#region src/web/features/session/Timeline.d.ts /** * One transcript, whichever fold it reads: the focused session's own, or a * thread of it. Owns the scroll pinning; the caller owns the empty state and * the session the entries' tool cards act on. * * `limit` and `compact` are for a fold that is not a whole surface, such as a * grid card: only the newest entries, drawn tighter, with no history paging * and no jump control, because a card is a glance and not a place to read. */ export interface TranscriptTurnRenderProps { turn: Extract; sessionId: string | null; slotProps: WebPluginSlotProps; statuses: Readonly>; renderEntry: (entry: TimelineEntry, options?: { suppressOutputs?: boolean; }) => ReactNode; /** A narrow column: entries stack under their avatar, so a turn layout should drop its avatar-column indent too. */ dense?: boolean; } export declare function Transcript({ store, sessionId, historyKey, empty, testId, backgroundWorkActive, runtimeActionsDisabled, limit, compact, dense, childThread, showThinking, renderTurn: Turn, scrollerClassName }: { store: Store; sessionId: string | null; historyKey?: string | null; empty: ReactNode; testId?: string; backgroundWorkActive?: boolean; runtimeActionsDisabled?: boolean; limit?: number; compact?: boolean; /** * Compact type and spacing for a narrow column, such as the dock, while it * stays a whole transcript: paging, the jump button and saved scroll still follow `compact`. */ dense?: boolean; /** A child run's thread: an input without a recorded sender is not the reader's, so it is not labelled "You". */ childThread?: boolean; /** Presentation only: never changes the stored transcript or the model's input. */ showThinking?: boolean; /** Opt-in turn layout. Unattributed/legacy entries keep the existing renderer. */ renderTurn?: ComponentType; /** Merged onto the scrolling element, so a layout can let it span the window and centre the column with padding. */ scrollerClassName?: string; }): import("react").JSX.Element; /** The focused session's conversation, with saved history readable before wake. */ export declare function Timeline({ renderTurn, showThinking, scrollerClassName, dense, empty }?: { renderTurn?: ComponentType; showThinking?: boolean; scrollerClassName?: string; /** Compact type and spacing for a narrow column such as the dock; see `Transcript`. */ dense?: boolean; /** * A template's own empty conversation for an attached session. Dormant, read-only and * first-session states keep the shared ones, and a person's emptyStateRegion fill still wraps it. */ empty?: (context: { ask: (text: string) => void; workspaceFree: boolean; }) => ReactNode; }): import("react").JSX.Element; //#endregion //# sourceMappingURL=Timeline.d.mts.map