interface trackDownloadData { track_id: number; duration: number; url: string; format_id: number; mime_type: string; sampling_rate: number; bit_depth: number; file_size: number; } export declare class QobuzError extends Error { constructor(code: number, message: string); } export declare class InvalidSecret extends QobuzError { constructor(message: string); } export declare const qobuzInstance: import("axios").AxiosInstance; export declare const qobuzLogin: (email: string, password: string, app_id: number) => Promise; export declare const initQobuzApi: (token: string, app_id: number, secrets: string[]) => Promise; /** * Make POST requests to Qobuz API * @param {Object} body post body * @param {String} method request method */ export declare const qobuzRequest: (method: string, params: object) => Promise; /** * @param track Track info json returned from `getTrackInfo` * @param quality 5 = MP3 320 kbps, 6 = 16-bit 44.1 kHz, 7 = 24-bit 96 kHz and 27 = 24-bit 192 kHz */ export declare const getTrackDownloadUrl: (track_id: number, quality: number, sec?: string | null) => Promise; export {};