import type { QueryClient } from '@tanstack/react-query'; import type { ThreadEvent, ThreadOverview } from '@pantheon-systems/css-client'; /** * Writes one thread's latest overview into its page's loaded listing. * * This is the seam every source of change comes through: a comment this reader just * posted, and later a change pushed from another reader. A page whose listing has not * been loaded is left alone, since writing one thread into an empty map would stand in * for a listing that was never fetched. * * @returns Whether a loaded listing was there to update. */ export declare function applyThreadOverview(queryClient: QueryClient, thread: ThreadOverview): boolean; /** * Folds a change to a thread into the page listing it belongs to, and a new or * rewritten comment into its thread as well when that thread is open. * * @returns Whether anything loaded was there to update. */ export declare function applyThreadEvent(queryClient: QueryClient, event: ThreadEvent): boolean;