import type { Ref } from 'vue'; import { type CitationRef } from '../citation-links.js'; import type { ChatCitationsConfig, CitationMeta, CitationStatus } from '../types.js'; export type CitationEntry = { status: Ref; meta: Ref; }; /** * Resolution cache shared by every chip in the session: one `resolve` call per document, * no matter how many times (or with which locators) it is cited. Keyed by config identity * so embeds with different resolvers (different backends/authorization scopes) never * reuse each other's results. */ export declare function useCitations(): { resolveCitation: (config: ChatCitationsConfig, citation: CitationRef) => CitationEntry; retryCitation: (config: ChatCitationsConfig, citation: CitationRef) => CitationEntry; };