import { AuthType, LoginResult } from "./login";
import { ApiResponse } from "../../../fd-toolbox/api/api-response";
import { User } from "../core/resources/users/user.resource";
/** Payload for an authentication request. */
export interface AuthRequest {
    /** User's email address */
    email: string;
    /** User's password */
    password?: string;
    /** User's first name */
    firstName?: string;
    /** User's last name */
    lastName?: string;
    /** OAuth key/token */
    oauthKey?: string;
    /** OAuth provider name */
    oauthProvider?: string;
    /** Type of authentication */
    authType?: AuthType;
    /** Id for workspace user invite */
    workspaceUserInviteId?: string;
}
/** @monorepo-internal */
export interface AuthResponse {
    user?: User;
    token?: string;
    message?: string;
}
/** @monorepo-internal */
export declare function getLoginResult(apiResponse: ApiResponse<AuthResponse>): LoginResult;
