@haelp/teto
Version:
A typescript-based controllable TETR.IO client.
25 lines • 735 B
TypeScript
import { Client } from "../client";
/**
* Client utils. This may be deprecated in the future
*/
export declare class ClientUtils {
private client;
/** @hideconstructor */
constructor(client: Client);
private get api();
/**
* Get the userid based on username
* @deprecated in favor of `client.social.resolve`
*/
getID(username: string): Promise<string>;
/**
* Get a user.
* @deprecated in favor of `client.social.who`
*/
getUser(opts: Parameters<typeof this.api.users.get>[0]): Promise<import("../../utils/api/users").Users.User>;
/**
* Promise that resolves after `time` ms
*/
sleep(time: number): Promise<unknown>;
}
//# sourceMappingURL=index.d.ts.map