UNPKG

mongodb-chatbot-ui

Version:

UI React components for the MongoDB Chatbot Framework

14 lines (13 loc) 712 B
import { type RichLinkProps } from "@lg-chat/rich-links"; import { Reference, type References, SortReferences } from "./references"; import { MessageData } from "./services/conversations"; export type FormatReferencesOptions = { tck?: string; onReferenceClick?: (reference: Reference) => void; }; export declare function formatReferences(references: References, { tck, onReferenceClick }?: FormatReferencesOptions): RichLinkProps[]; export declare function getMessageLinks(messageData: MessageData, options?: { tck?: string; onReferenceClick?: (reference: Reference) => void; }): RichLinkProps[] | undefined; export declare function makePrioritizeCurrentMongoDbReferenceDomain(): SortReferences;