import { DefaultClient, PBResponse } from "./client"; export class User { pk: number; username: string; name: string; is_superuser: boolean; email: boolean; avatar: string; constructor() { throw Error(); } static me(): Promise { return DefaultClient.fetch(["core", "users", "me"]); } static count(): Promise { return DefaultClient.fetch>(["core", "users"], { "page_size": 1 }).then(r => { return r.pagination.count; }); } }