import { client } from "../client"; import type { User } from "../client"; export type RegisterBody = { username: string; password: string; }; export function postRegister(body: RegisterBody): Promise { return client("/auth/register", { method: "POST", body }); }