import type { ComputedRef, Ref } from 'vue'; import type eponymeConfig from '#eponyme/config'; import type { EponymeCollectionName } from '../types/index.js'; import type { EponymeReferrer } from '../types/relations.js'; export interface UseEponymeReferrersOptions { /** Only referrers of this collection, for example the articles of one author. */ collection?: EponymeCollectionName; } export interface UseEponymeReferrersResult { referrers: ComputedRef; pending: Ref; error: Ref; refresh: () => Promise; } export type UseEponymeReferrersReturn = UseEponymeReferrersResult & Promise; /** * The published entries pointing at `target` - `/`, or a singleton's name - read from the * relation index. * * @example * ```ts * const { referrers } = await useEponymeReferrers('authors/jane', { collection: 'articles' }) * ``` */ export declare function useEponymeReferrers(target: string, options?: UseEponymeReferrersOptions): UseEponymeReferrersReturn;