import { default as React } from 'react'; import { TealActorStatusRecord } from '../types/teal'; /** * Props for rendering the last played track from teal.fm feed. */ export interface LastPlayedProps { /** DID of the user whose last played track to display. */ did: string; /** Optional renderer override for custom presentation. */ renderer?: React.ComponentType; /** Fallback node displayed before loading begins. */ fallback?: React.ReactNode; /** Indicator node shown while data is loading. */ loadingIndicator?: React.ReactNode; /** Preferred color scheme for theming. */ colorScheme?: "light" | "dark" | "system"; /** Auto-refresh music data and album art. Defaults to false for last played. */ autoRefresh?: boolean; /** Refresh interval in milliseconds. Defaults to 60000 (60 seconds). */ refreshInterval?: number; } /** * Values injected into custom last played renderer implementations. */ export type LastPlayedRendererInjectedProps = { /** Loaded teal.fm feed play record value. */ record: TealActorStatusRecord; /** Indicates whether the record is currently loading. */ loading: boolean; /** Fetch error, if any. */ error?: Error; /** Preferred color scheme for downstream components. */ colorScheme?: "light" | "dark" | "system"; /** DID associated with the record. */ did: string; /** Record key for the play record. */ rkey: string; /** Handle to display in not listening state */ handle?: string; }; /** NSID for teal.fm feed play records. */ export declare const LAST_PLAYED_COLLECTION = "fm.teal.alpha.feed.play"; /** * Displays the last played track from teal.fm feed. * * @param did - DID whose last played track should be fetched. * @param renderer - Optional component override that will receive injected props. * @param fallback - Node rendered before the first load begins. * @param loadingIndicator - Node rendered while the data is loading. * @param colorScheme - Preferred color scheme for theming the renderer. * @param autoRefresh - When true, refreshes album art and streaming platform links at the specified interval. Defaults to false. * @param refreshInterval - Refresh interval in milliseconds. Defaults to 60000 (60 seconds). * @returns A JSX subtree representing the last played track with loading states handled. */ export declare const LastPlayed: React.FC; export default LastPlayed;