import type { MakeRequestOptionsWithoutMethod, RESTOptions } from './types'; /** * Represents the class that manages handlers for endpoints. */ export declare class REST { /** * Options to use in all requests. */ readonly options: RESTOptions; constructor( /** * Options to use in all requests. */ options?: RESTOptions); /** * Sets the authorization token that should be used for requests. * @param secret The secret to use. */ setSecret(secret: string): this; /** * Runs a GET request from the API. */ get(route: string, options?: MakeRequestOptionsWithoutMethod): Promise; /** * Runs a POST request from the API. */ post(route: string, options?: MakeRequestOptionsWithoutMethod): Promise; /** * Runs a DELETE request from the API. */ delete(route: string, options?: MakeRequestOptionsWithoutMethod): Promise; /** * Runs a PUT request from the API. */ put(route: string, options?: MakeRequestOptionsWithoutMethod): Promise; /** * Runs a PATCH request from the API. */ patch(route: string, options?: MakeRequestOptionsWithoutMethod): Promise; private makeRequest; private handleError; private process; private makeURL; private makeHeaders; }