import { Response } from 'node-fetch'; import type { APIRoutes } from 'revolt-api/dist/routes'; import { APIRequest, APIRequestOptions } from './APIRequest'; import { BaseClientOptions } from '../client/BaseClient'; declare type GetRoutes = Extract; declare type PostRoutes = Extract; declare type DeleteRoutes = Extract; declare type PatchRoutes = Extract; declare type PutRoutes = Extract; export declare const parseResponse: (res: Response) => Promise; export declare type RESTOptions = BaseClientOptions['rest']; export declare class REST { #private; private readonly options; debug(_message: string): void; constructor(options: RESTOptions); setToken(token: string | null, bot?: boolean): this; private get headers(); request(request: APIRequest): Promise; private getOptions; get(path: Path, options?: APIRequestOptions): Promise['response']>; delete(path: Path, options?: APIRequestOptions): Promise['response']>; post(path: Path, options?: APIRequestOptions): Promise['response']>; put(path: Path, options?: APIRequestOptions): Promise['response']>; patch(path: Path, options?: APIRequestOptions): Promise['response']>; } export {};