import type { EponymeSchema } from '../types/index.js'; export interface EponymeRelationReference { /** Dotted path of the field holding it, so an error can name where the reference is. */ path: string; /** Collection the field points at, as declared in `to`. */ collection: string; slug: string; /** `/`, which is how an entry is keyed everywhere else. */ entryName: string; } /** * Every entry a payload points at, wherever the schema puts the relation - at the root, in a section, in a * tab, in an array of items or in an array of relations. */ export declare function collectEponymeRelations(schema: EponymeSchema, data: unknown): EponymeRelationReference[]; /** Every `to` a schema declares, at any depth: what an entry of this schema could ever point at. */ export declare function collectEponymeRelationTargets(schema: EponymeSchema): Set;