/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { CollectionAdminConfig, MultiCollectionDefinition } from '@byline/core'; interface RelationSummaryProps { targetDefinition: MultiCollectionDefinition; targetAdminConfig: CollectionAdminConfig | null; displayField?: string; /** The raw relation value from the form. May be a plain ref or a populated envelope. */ value: { targetDocumentId: string; targetCollectionId: string; _resolved?: boolean; _cycle?: boolean; document?: Record; }; /** * A document record cached client-side from a recent picker selection. * Used when `value` is a plain ref (post-pick state) but we still want * the tile to render real display data without a refetch. Caller is * responsible for clearing/replacing this when the value's * `targetDocumentId` changes. */ cachedRecord?: Record | null; } export declare function RelationSummary({ targetDefinition, targetAdminConfig, displayField, value, cachedRecord, }: RelationSummaryProps): import("react").JSX.Element; export {};