import { Core } from '@strapi/strapi'; import { FieldMap } from './settings'; import { Platform } from '../utils/plugin'; export interface NormalisedEntry { documentId: string; title: string; image: any | null; broadcastDate: string | null; tags: string[]; showName: string; links: Record; raw: any; } declare const _default: ({ strapi }: { strapi: Core.Strapi; }) => { settings(): Core.Service; mapping(): Promise; /** Throws 503 until a content type + title field have been mapped. */ requireMapping(): Promise; /** Populate object covering every mapped relation/media field. */ populateFor(mapping: FieldMap): Record; normalise(mapping: FieldMap, entry: any): NormalisedEntry; /** Loads one mapped entry (with relations populated) or throws 404. */ loadEntry(documentId: string): Promise; /** * Writes platform links back onto the user's entry. Only the mapped link * fields are touched. Uses the db layer (like the pre-plugin code) so the * write lands directly on the stored row without a draft/publish cycle. */ writeLinks(documentId: string, links: Partial>): Promise; /** * Content types + attributes for the settings page's mapping selects. * Only user-created (api::) types; attributes reduced to what the UI needs. */ listContentTypes(): { uid: string; displayName: any; attributes: { name: string; type: any; target: any; targetAttributes: string[]; }[]; }[]; }; export default _default;