UNPKG

scdl-core

Version:
17 lines (16 loc) 473 B
import { Playlist } from "./playlist"; import { Track } from "./track"; import { User } from "./user"; export declare type SearchFilter = "tracks" | "users" | "albums" | "playlists" | "all"; export interface SearchOptions { query: string; limit?: number; offset?: number; filter?: SearchFilter; } export interface SearchResponse<T = Playlist | Track | User> { collection: T[]; total_results: number; next_href?: string; query_urn: string; }