import type { SearchParams, SearchResult, SearchResultRaw } from "./types/search"; import { SongsResource } from "./resources/songs"; import { AlbumsResource } from "./resources/albums"; import { ArtistsResource } from "./resources/artists"; import { MusicVideosResource } from "./resources/musicvideos"; import { StorefrontsResource } from "./resources/storefronts"; export type MusicKitProps = { key: { id: string; teamId: string; p8: string; }; }; export type MusicKitResultWrapper = { status: number; data: T; error: string | null; }; export type FetchAPI = (path: string) => Promise>; export declare class MusicKit { baseUrl: string; private token; private key; constructor(props: MusicKitProps); private fetchAPI; private _songs?; private _albums?; private _artists?; private _musicVideos?; private _storefronts?; get songs(): SongsResource; get albums(): AlbumsResource; get artists(): ArtistsResource; get musicVideos(): MusicVideosResource; get storefronts(): StorefrontsResource; auth(): Promise; testAuth(): Promise; search(storefront: string, params: SearchParams, raw: true): Promise>; search(storefront: string, params: SearchParams, raw?: false): Promise>; } //# sourceMappingURL=index.d.ts.map