import { Event } from "../../../../base/common/event.js"; import { IDisposable } from "../../../../base/common/lifecycle.js"; import { ThemeIcon } from "../../../../base/common/themables.js"; import { URI } from "../../../../base/common/uri.js"; import { IEditorOptions } from "../../../../platform/editor/common/editor.js"; import { IOutline, IOutlineListConfig, OutlineChangeEvent, OutlineTarget } from "../../../services/outline/browser/outline.js"; import { IChatWidget } from "./chat.js"; import { IChatRequestViewModel } from "../common/model/chatViewModel.js"; /** * Derives the display label for a chat request. Reads the prompt text the same * way the chat list renders it (followup message, else the parsed request * parts) rather than relying on `messageText`, which some providers (e.g. * agent-host sessions) leave empty. When there is no prompt text, falls back to * an attachment summary (matching the chat list) and finally a numbered label. * Collapses whitespace so multi-line prompts render on a single row. Returns raw * text; callers that render into an icon-parsing surface (e.g. the quick pick) * must escape `$(...)` codicon markup themselves via `escapeIcons`. */ export declare function getChatRequestLabel(request: IChatRequestViewModel, index: number): string; /** * A single navigable element in a chat outline. Each entry maps to a user * request (prompt) in the chat, acting as the top-level "symbol" the user can * jump to via Go to Symbol, the Outline pane, and Breadcrumbs. */ export declare class ChatOutlineEntry { readonly index: number; readonly element: IChatRequestViewModel; constructor(index: number, element: IChatRequestViewModel); get id(): string; get icon(): ThemeIcon; get label(): string; } export declare class ChatOutline implements IOutline { private readonly _widget; readonly outlineKind = "chat"; private readonly _disposables; private readonly _onDidChange; readonly onDidChange: Event; private _entries; readonly config: IOutlineListConfig; constructor(_widget: IChatWidget, target: OutlineTarget); private readonly _viewModelDisposables; private _registerViewModelListener; private _entriesSignature; private _recomputeEntries; get entries(): ChatOutlineEntry[]; get uri(): URI | undefined; get isEmpty(): boolean; get activeElement(): ChatOutlineEntry | undefined; reveal(entry: ChatOutlineEntry, _options: IEditorOptions, _sideBySide: boolean, _select: boolean): void; preview(entry: ChatOutlineEntry): IDisposable; captureViewState(): IDisposable; dispose(): void; }