import type { RequestMethods, RestManager } from '@discordeno/rest'; import type Client from './Client.js'; import type { FileContent, RequestHandlerOptions } from './typings.js'; export declare class RequestHandler { /** The client manager. */ client: Client; /** The options this manager was configured with. */ options: RequestHandlerOptions; /** The user agent used to make requests. */ userAgent: string; /** The rate limits currently in cache. */ ratelimits: Record; /** The latency information for this manager. */ latencyRef: { latency: number; raw: number[]; timeOffset: number; timeOffsets: number[]; lastTimeOffsetCheck: number; }; /** Whether or not the manager is globally blocked. */ globalBlock: boolean; /** The ready queue */ readyQueue: unknown[]; /** The internal rest manager from dd. */ discordeno: RestManager; constructor(client: Client, options: RequestHandlerOptions); /** * @deprecated Use `.client` instead */ get _client(): Client; /** * @deprecated Useless, handled by discordeno itself. Kept for Eris api compatibility. */ globalUnblock(): void; warnUser(): void; /** * Make an API request * @deprecated Use a proxy rest instead. */ request(method: RequestMethods, url: string, auth?: boolean, body?: any, file?: FileContent): Promise; routefy(url: string, method: RequestMethods): string; toString(): string; toJSON(props?: string[]): Record; } export default RequestHandler; //# sourceMappingURL=RequestHandler.d.ts.map