UNPKG

smc-hub

Version:

CoCalc: Backend webserver component

20 lines (19 loc) 627 B
import { CreateAccount } from "smc-util/message-types"; import { PostgreSQL } from "../postgres/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 {};