/** * The threads on one page, keyed the way triggers look them up. * * The API answers with one overview per context on the page: the open thread when * there is one, otherwise the latest resolved one. Held as a map from `threadKey` so a * trigger for any kind of context reads its own entry without a search, and so a * change to one thread can be written back in place. */ import type { P1Client, ThreadOverview } from '@pantheon-systems/css-client'; export declare const DOCUMENT_THREADS_KEY = "p1-document-threads"; export type DocumentThreads = Readonly>; export declare const NO_THREADS: DocumentThreads; export declare function documentThreadsKey(siteId: string | undefined, documentId: string | undefined): readonly ["p1-document-threads", string | undefined, string | undefined]; export declare function overviewKey(thread: ThreadOverview): string; export declare function indexThreads(threads: ThreadOverview[]): DocumentThreads; export declare function fetchDocumentThreads(client: P1Client, siteId: string, documentId: string): Promise;