@cocalc/hub
Version:
CoCalc: Backend webserver component
20 lines (19 loc) • 650 B
TypeScript
import type { PostgreSQL } from "@cocalc/database/postgres/types";
import { CreateAccount } from "@cocalc/util/message-types";
export declare function is_valid_password(password: string): (string | boolean)[];
interface AccountCreationOptions {
client: any;
mesg: CreateAccount;
database: PostgreSQL;
host?: string;
port?: number;
sign_in?: boolean;
}
export declare function create_account(opts: AccountCreationOptions): Promise<void>;
interface DeleteAccountOptions {
client?: any;
mesg?: any;
database: PostgreSQL;
}
export declare function delete_account(opts: DeleteAccountOptions): Promise<void>;
export {};