import Base, { MaybeRaw } from "../../../Base"; import { SuccessfulAuth } from "../../../interfaces/idp/user/SuccessfulAuth"; export declare class IdpRegistration extends Base { /** * Registers a User in the HCloud system. This endpoint will send a verification link (with expiration date) to the Users' email address. * At this point the User will have an account status of 'AWAITING_VALIDATION' and cannot sign into his account. If the registration won't be * validated before the expiration date, the user will be deleted again. * @param name - Name of the User * @param email - Email of the User * @param password - Password * @param captcha - Captcha * @param company - Optional company name * @param regionId - Optional region id * @param targetUrl Optional url the link in the mail will point to */ register(name: string, email: string, password: string, captcha: string, company?: string, regionId?: string, targetUrl?: string, validationCode?: string, raw?: { raw: R; }): Promise>; /** * Triggers the registration mail to be resend if the first one got lost * @param name - Name of the User * @param email - Email of the User * @param password - Password * @param captcha - Captcha * @param company - Optional company name * @param regionId - Optional region id * @param targetUrl Optional url the link in the mail will point to */ resendRegistrationMail(name: string, email: string, password: string, captcha: string, company?: string, regionId?: string, targetUrl?: string, raw?: { raw: R; }): Promise>; /** * Validates a previous registration. If successful, the Users account status will be set to 'Active'. * @param email - Email of the User * @param verificationCode - Email verification code * @param regionId - Optional region id * @returns Bearer Token and User object */ validateRegistration(email: string, verificationCode: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }