/** * @ignore */ export type ParsedUrl = { video?: { id?: string; }; playlist?: { id?: string; }; channel?: { id?: string; username?: string; searchQuery?: string; }; }; /** * @ignore */ export type SearchParams = { [key: string]: string | number | boolean; }; /** * @ignore */ export type RequestPart = { data: T; contentType?: string; }; /** * @ignore */ export type DefaultRequestOptions = { authorizationOptions?: AuthorizationOptions; params?: SearchParams; accept?: string; }; /** * @ignore */ export declare enum HttpMethod { GET = 0, PUT = 1, POST = 2, DELETE = 3 } /** * @ignore */ export type AuthorizationOptions = { apiKey?: boolean; accessToken?: boolean; }; /** * @ignore */ export type GetDeleteParams = { auth?: Authorization; contentType?: string; accept?: string; }; /** * @ignore */ export type PostPutParams = GetDeleteParams & { data?: any; }; export type Authorization = { apiKey?: string; accessToken?: string; }; export type Image = { type: 'jpeg' | 'png'; data: Buffer; };