import type { CatalogContentType } from '../index/schema.js'; export interface CdaReferenceRecord { id: string; contentType: CatalogContentType; slug: string | null; label: string; cmsLabel: string | null; updatedAt: string; tagTypeSlug: string | null; articleTypeSlug: string | null; /** Publication date (`YYYY-MM-DD`) for articles; null for other catalog types. */ date: string | null; } export interface ReferenceFieldValues { slug?: string | null; name?: string | null; title?: string | null; cmsLabel?: string | null; adminLabel?: string | null; date?: string | null; } export interface BuildReferenceRecordOptions { strict?: boolean; tagTypeSlug?: string | null; articleTypeSlug?: string | null; date?: string | null; } /** * Maps normalized reference fields to a catalog row. * When `strict` is true (CDA sync), incomplete rows return null. When false (CMA upsert), falls back to entry id. */ export declare function buildReferenceRecord(contentType: CatalogContentType, id: string, updatedAt: string, fields: ReferenceFieldValues, opts?: BuildReferenceRecordOptions): CdaReferenceRecord | null; /** Reads locale-keyed CMA fields into {@link ReferenceFieldValues}. */ export declare function referenceFieldValuesFromCma(fields: Record>, locale: string): ReferenceFieldValues; export declare function referenceRowFromCmaEntry(contentType: CatalogContentType, entry: { sys: { id: string; updatedAt: string; }; fields: Record>; }, locale: string, parentSlugs?: { tagTypeSlug?: string | null; articleTypeSlug?: string | null; }): CdaReferenceRecord; //# sourceMappingURL=reference-record.d.ts.map