import { IStringifyOptions } from 'qs'; import { TwitchJSError } from '../error'; declare type QueryParams = { /** Any query parameters you want to add to your request. */ [key: string]: string | number | boolean; }; interface BodyParams { [key: string]: any; } export declare type FetchOptions = Omit & { search?: Query; } & { body?: Body; }; export declare class FetchError extends TwitchJSError { body?: any; constructor(message: string, body?: any); } /** * Fetches URL */ declare const fetchUtil: (url: RequestInfo, options?: FetchOptions | undefined, qsOptions?: IStringifyOptions | undefined) => Promise; export default fetchUtil;