import { ThemeSettings } from './theme/tokens'; export type PlatformKey = 'mixcloud' | 'soundcloud'; export declare const PLATFORMS: PlatformKey[]; export declare const PLATFORM_LABEL: Record; export interface PlatformStatus { state: 'not_published' | 'publishing' | 'linked' | 'stalled'; requestedAt: string | null; link: string | null; } export interface RcStatus { enabled: boolean; trackId: string | null; uploadedAt: string | null; platforms: Record; rateLimitMessage?: string | null; details: { title: string; showName: string; artist: string; album: string; description: string; genres: string[]; image: { name: string; previewUrl: string; usable: boolean; } | null; }; } export interface ContentTypeInfo { uid: string; displayName: string; attributes: { name: string; type: string; target: string | null; targetAttributes: string[] | null; }[]; } export interface SettingsPayload { credentials: { stationId: string; enabled: boolean; apiKeySet: boolean; }; mapping: Record; defaults: { artist: string; description: string; trackTag: string; }; theme: ThemeSettings; envLocks: { apiKey: boolean; stationId: boolean; enabled: boolean; }; } export declare const apiError: (error: any) => string; export declare const fetchStatus: (documentId: string, refresh?: boolean) => Promise; export declare const publishTrack: (documentId: string, platform: PlatformKey, body: { title: string; tags: string[]; description: string; }, force?: boolean) => Promise; export declare const saveTrackDetails: (documentId: string, meta: { title: string; artist: string; album: string; }) => Promise; export declare const fetchUiConfig: () => Promise<{ theme: ThemeSettings; contentType: string | null; }>; export declare const fetchSettings: () => Promise; export declare const saveSettings: (patch: Record) => Promise; export declare const testConnection: () => Promise<{ ok: boolean; message: string; }>; export declare const fetchContentTypes: () => Promise; export declare const fetchDiagnostics: () => Promise<{ nodeVersion: string; openAsBlob: boolean; bodyMaxFileSize: number | null; bodyLimitOk: boolean | null; cronEnabled: boolean; }>; export interface UploadCallbacks { onProgress: (pct: number | null) => void; onDone: (body: { trackId?: string; warnings?: string[]; }) => void; onConflict: (message: string) => void; onError: (message: string, status?: number) => void; onAbort: () => void; } /** * Uploads the audio file with progress reporting. Returns the XHR so the * caller can abort. `token` comes from useAuth — fetch() has no upload * progress events, so this one call is a raw XHR. */ export declare const uploadTrack: (documentId: string, file: File, meta: { title: string; artist: string; album: string; }, force: boolean, token: string, callbacks: UploadCallbacks) => XMLHttpRequest;