import type { NowPlayingMetadata } from '../features/metadata'; import type { PlayingState } from '../features/playback/playing'; import type { PlaybackState } from '../features/playback/state'; import type { Options } from '../features/player/options'; import type { RepeatMode } from '../features/queue/repeatMode'; import type { Track } from '../types'; interface DebugLogEntry { timestamp: number; elapsed: number | null; type: 'initial' | 'change' | 'metadata'; message: string; } interface DebugState { activeTrack: Track | undefined; state: PlaybackState; playingState: PlayingState; playWhenReady: boolean; position: number; duration: number; queue: string; repeatMode: RepeatMode; shuffle: boolean; options: Options; online: boolean; nowPlaying: NowPlayingMetadata | undefined; playbackError: string | null; navigationError: string | null; path: string | null; content: string | null; } interface DebugOptions { /** Whether logging is enabled (default: __DEV__) */ enabled?: boolean; /** Whether to log stream metadata events (default: false) */ metadata?: boolean; } declare function clearDebugLogs(): void; /** * Debug hook that provides state inspection and change logging. * * @param options - Configuration options * @returns Debug object with state, logs, and clear function * * @example * ```tsx * function MyScreen() { * const debug = useDebug() * // debug.state - current state * // debug.logs - log history * // debug.clear() - clear logs * } * * // With metadata logging for live streams * function RadioScreen() { * const debug = useDebug({ metadata: true }) * } * ``` */ export declare function useDebug(options?: DebugOptions): { state: DebugState; logs: DebugLogEntry[]; clear: typeof clearDebugLogs; }; export {}; //# sourceMappingURL=useDebug.d.ts.map