import { Core } from '@strapi/strapi'; type PlatformState = 'not_published' | 'publishing' | 'linked' | 'stalled'; declare const _default: ({ strapi }: { strapi: Core.Strapi; }) => { /** * Receives the browser upload (a formidable temp file), embeds artwork * for mp3s, forwards the file to Radio Cult and stores the returned track * id in the plugin's track-record. `meta` carries the (possibly edited) * details from the uploader page; anything missing falls back to the * entry's own values. */ uploadTrack({ documentId, file, force, meta, }: { documentId: string; file: any; force: boolean; meta?: { title?: string; artist?: string; album?: string; }; }): Promise<{ trackId: any; warnings: string[]; }>; /** * Asks Radio Cult to publish the entry's track to Mixcloud or SoundCloud. * Radio Cult transfers asynchronously; syncLinks picks up the URL later. * `meta` carries the (possibly edited) details from the uploader page. */ publish({ documentId, platform, force, meta, }: { documentId: string; platform: string; force: boolean; meta?: { title?: string; tags?: unknown; description?: string; }; }): Promise<{ requestedAt: string; }>; /** * Finds entries whose publish was requested but whose link hasn't * arrived, fetches Radio Cult's track list ONCE, and writes any links * that appeared back onto the mapped fields. Called by the cron sweep, * the status endpoint and the "check now" button. */ syncLinks({ documentIds, bypassCache, }?: { documentIds?: string[]; bypassCache?: boolean; }): Promise<{ updated: number; pending: number; }>; /** * Per-entry state for the panel and the uploader page. Includes the * entry details the uploader page prefills its editable form with. */ getStatus(documentId: string, { refresh }?: { refresh?: boolean; }): Promise<{ enabled: boolean; trackId: any; uploadedAt: any; platforms: { mixcloud: { state: PlatformState; requestedAt: string; link: string; }; soundcloud: { state: PlatformState; requestedAt: string; link: string; }; }; rateLimitMessage: string; details: { title: any; showName: any; artist: any; album: string; description: any; genres: any; image: { name: any; previewUrl: any; usable: boolean; }; }; }>; /** * Pushes edited title/artist/album to an already-uploaded Radio Cult * track (the uploader page's "Save details to Radio Cult" button). */ updateTrackMetadata({ documentId, meta, }: { documentId: string; meta: { title?: string; artist?: string; album?: string; }; }): Promise<{ updated: string[]; }>; /** * Lifecycle hook body: pushes a changed title to the Radio Cult track. * Only fires when the mapped title field actually changed (beforeUpdate * stashes the previous value) — the track title can be customised on the * uploader page, and an unrelated save must not overwrite it. */ maybeSyncTitle(event: any): Promise; }; export default _default;