import { Core } from '@strapi/strapi'; export interface FieldMap { /** UID of the content type episodes live in, e.g. 'api::episode.episode'. */ contentType: string | null; /** String field holding the episode title. */ title: string | null; /** Media field holding the episode artwork. */ image: string | null; /** Date/datetime field for the broadcast date (used for the default album name). */ broadcastDate: string | null; /** String field the SoundCloud link is written back to. */ soundcloudLink: string | null; /** String field the Mixcloud link is written back to. */ mixcloudLink: string | null; /** Relation field holding genre/tag entries. */ tagsRelation: string | null; /** String attribute on the tag target type used as the tag text. */ tagsLabelField: string | null; /** Optional relation to a parent show (used for the tab title). */ showRelation: string | null; /** String attribute on the show target type used as the show name. */ showLabelField: string | null; } export interface ThemeSettings { preset: string; /** Per-token colour overrides, e.g. { pageBg: '#C0B7AF' }. */ overrides: Record; /** Uploader font: 'system' or a Google font key (see admin FONTS). */ fontFamily: string; /** Logo image URL (media library file) shown in the uploader header. */ logoUrl: string | null; /** Station / site name shown under the uploader heading. */ stationName: string; } export interface PluginSettings { credentials: { apiKey: string; stationId: string; enabled: boolean; }; mapping: FieldMap; defaults: { artist: string; description: string; /** Radio Cult media tag added to every uploaded track ('' = none). Radio Cult only. */ trackTag: string; }; theme: ThemeSettings; } export declare const DEFAULT_SETTINGS: PluginSettings; declare const _default: ({ strapi }: { strapi: Core.Strapi; }) => { store(): { get(params?: Partial<{ key: string; type?: string; environment?: string; name?: string; tag?: string; }>): Promise; set(params?: Partial<{ key: string; value: unknown; type?: string; environment?: string; name?: string; tag?: string; }>): Promise; delete(params?: Partial<{ key: string; type?: string; environment?: string; name?: string; tag?: string; }>): Promise; }; /** Full settings object, stored values merged over defaults. */ get(): Promise; /** * Which credential fields are locked by plugin config / env vars. The * settings page greys those inputs out and says where the value comes from. */ envLocks(): { apiKey: boolean; stationId: boolean; enabled: boolean; }; /** Effective credentials: plugin config (env-backed) wins over the store. */ credentials(): Promise<{ apiKey: string; stationId: string; enabled: boolean; }>; /** Validates a mapping against the live content types. Throws RcHttpError(400). */ validateMapping(mapping: FieldMap): void; /** Merge-updates the stored settings. Returns the new effective settings. */ update(patch: Partial): Promise; /** Cheap authenticated Radio Cult call to prove the key + station work. */ testConnection(): Promise<{ ok: boolean; message: string; }>; }; export default _default;