@haelp/teto
Version:
A typescript-based controllable TETR.IO client.
15 lines (14 loc) • 656 B
TypeScript
import { APIDefaults } from ".";
import { Social } from "../../types";
import type { Get, Post } from "./basic";
export declare const relationship: (get: Get, post: Post, __: APIDefaults) => {
/** Block a user */
block: (id: string) => Promise<true>;
/** Unblock a user. Note: unblocking a user will unfriend them if they are friended. */
unblock: (id: string) => Promise<boolean>;
/** Friend a user */
friend: (id: string) => Promise<true>;
/** Unfriend a user. Note: unfriending a user will unblock them if they are blocked. */
unfriend: (id: string) => Promise<boolean>;
dms: (id: string) => Promise<Social.DM[]>;
};