import type { AgentClient, ThreadSummaryEvent } from "@agents24/client"; import * as React from "react"; import type { StoredChatThread } from "./model"; import { type AgentChatOperation, type AgentChatState } from "./state"; export declare function summaryToStored(thread: Record): StoredChatThread; export declare function useAgentChatThreadList({ client, threadPageSize, stateRef, update, clearOperationError, failOperation }: { client: AgentClient; threadPageSize: number; stateRef: React.RefObject; update: (updater: (current: AgentChatState) => AgentChatState) => void; clearOperationError: () => void; failOperation: (operation: AgentChatOperation, cause: unknown) => void; }): { isLoadingThreads: boolean; isLoadingMoreThreads: boolean; threadTotal: number | undefined; eventsDuringRefreshRef: React.RefObject; refreshThreads: () => Promise; loadMoreThreads: () => Promise; };