import type { ChatMessage as Message } from '../types.js'; /** The text a reader sees in each message of a transcript, kept for the * messages the list doesn't draw, so a search reaches them without drawing * them all. A message is known by its object, which a change replaces, so one * read before it changed is read again. */ export interface TextIndex { get(message: Message): string | undefined; set(message: Message, text: string): void; clear(): void; subscribe(listener: () => void): () => void; } export declare function createTextIndex(): TextIndex;