import Base, { MaybeRaw } from "../../../Base"; import { SuccessfulAuth } from "../../../interfaces/idp"; export declare class IdpGuest extends Base { /** * Creates a new guest user account. * * @param email - The email address of the guest to create. * @param name - The display name of the guest user. * @param emailHMAC - An HMAC signature of the email, used for validation. * @returns A promise resolving to a `SuccessfulAuth` object containing: * - `user`: The created `User` object. * - `token`: An authorization token returned by the API. */ createGuest(email: string, name: string, emailHMAC: string, raw?: { raw: R; }): Promise>; /** * Logs in as an existing guest user. * * @param email - The email address of the guest to log in. * @param emailHMAC - An HMAC signature of the email, used for validation. * @returns A promise resolving to a `SuccessfulAuth` object containing: * - `user`: The authenticated `User` object. * - `token`: An authorization token returned by the API. */ loginAsGuest(email: string, emailHMAC: string, raw?: { raw: R; }): Promise>; /** * Checks whether an email corresponds to a guest account. * * @param email - The email address to check. * @returns A promise resolving to one of: * - `"no user"` → No user exists with the given email. * - `"not guest"` → A user exists but is not a guest. * - `"guest"` → The email belongs to a guest account. */ isGuest(email: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }