blob: 00b54ae197d3aaa9dd1f4f1a6a1a0ce29a74577f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { Client } from "../";
import { Song } from "./Song";
export interface SongSearchOptions {
sanitizeQuery: boolean;
}
export declare class SongsClient {
readonly client: Client;
/**
* @example const SongsClient = new Genius.Songs.Client(key);
*/
constructor(client: Client);
/**
* Searches for songs for the provided query (Key is optional)
* @example const SearchResults = await SongsClient.search("faded");
*/
search(query: string, options?: Partial<SongSearchOptions>): Promise<Song[]>;
/**
* Fetches the Song using the provided ID (Requires Key)
* @example const Song = await SongsClient.get(3276244);
*/
get(id: number): Promise<Song>;
sanitizeQuery(query: string): string;
}
|