import { type RefObject } from 'react'; import type { TextIndex } from '../core/textIndex.js'; import type { ChatMessage as Message } from '../types.js'; /** What find searches beyond what the list draws: every message of the * conversation, the text the list read of those it doesn't draw, and a way * to draw one. */ export interface FindSource { messages: Message[]; index: TextIndex; reveal: (messageId: string) => Promise; } /** Find in the transcript under root: ⌘F or FIND_IN_TRANSCRIPT_EVENT opens it, * and it finds again as the transcript streams. With a source, it also finds * in the messages the list doesn't draw, and draws one to show a match in it. */ export declare function useTranscriptFind(root: RefObject, enabled: boolean, source?: FindSource): { open: boolean; query: string; setQuery: import("react").Dispatch>; total: number; current: number; more: boolean; next: () => void; previous: () => void; close: () => void; inputRef: RefObject; }; export type TranscriptFind = ReturnType; /** The find bar over the transcript, in line with its column. */ export declare function TranscriptFindBar({ find }: { find: TranscriptFind; }): import("react").JSX.Element | null;