import { REST } from "./http/rest.js"; import { WebSocketManager } from "#ws"; import type { CompilerOptions } from "./compiler.js"; import type { DispatchFunction } from "#ws"; import type { CacheManagerStructure, CachingOptions, ClientOptions, DebugFunction, Transformers, Application, MockClient, Listeners } from "./typings/index.js"; type GetUserType> = (T["userUpdate"] & {}) extends { handler: ((...args: infer U) => infer R); } ? unknown extends R ? U[1] : R : never; export declare class Client implements MockClient { #private; readonly rest: REST; readonly cache: CacheManagerStructure; readonly ws: WebSocketManager; readonly user: GetUserType>; readonly sessionId: string; readonly application: Application.Structure; protected readonly ready: boolean; constructor(options: ClientOptions, debug?: DebugFunction); login(token: string, dispatch?: DispatchFunction | undefined): Promise; close(): void; ping(): Promise<{ ws: number; rest: number; }>; } export interface CreateClientOptions> extends Omit, CompilerOptions { token: string; listeners: Listeners; caching?: CachingOptions; debug?: DebugFunction; } export declare function createClient = Transformers>(options: CreateClientOptions): Promise; export {}; //# sourceMappingURL=client.d.ts.map