import { IChatResponseViewModel } from "../../../common/model/chatViewModel.js"; /** * A unit of searchable text from a chat response, keyed to the content part it came from. * `partIndex` indexes {@link IChatResponseViewModel.response.value}; `-1` marks row-level * text with no content part of its own, such as error details. */ export interface IChatFindTextPart { readonly partIndex: number; readonly text: string; } /** * Extracts the text a response actually *renders*, for Find to index. * * Deliberately not the accessible view's extraction: that one describes a response to a screen * reader and synthesizes strings with no on-screen equivalent (result payloads, "Input:", * "Errored", authentication prompts). Indexing those produces matches Find counts but can never * scroll to or highlight, because the DOM has no such text. * * Only content whose rendering can be predicted from the model alone is indexed. Reasoning and * tool invocations are excluded: where they render is decided during rendering, so indexing them * makes the match count depend on how far the transcript has been drawn. */ export declare function getChatFindTextParts(item: IChatResponseViewModel): IChatFindTextPart[];