// Shared type definitions for the Spotify Clone application

export interface Track {
    id: string;
    title: string;
    artist: string;
    album: string;
    cover_url: string;
    url?: string;
    duration?: number;
}

export interface Playlist {
    id: string;
    title: string;
    description?: string;
    tracks: Track[];
    createdAt: number;
    cover_url?: string;
}

export interface AudioQuality {
    format: string;
    sampleRate: number;
    bitDepth?: number;
    bitrate: number;
    channels: number;
    codec?: string;
}

export interface LyricLine {
    time: number;
    text: string;
}

export interface SearchResult {
    id: string;
    title: string;
    artist: string;
    album: string;
    cover_url: string;
    duration?: number;
}
