import { AuthRequest } from "../../../meta/auth/auth-handler";
import { LoginResult } from "../../../meta/auth/login";
import { RouterInstance } from "../../../meta/client/framework";
export declare function defaultLogin(router: RouterInstance, email: string, password?: string): Promise<LoginResult>;
export declare function loginByOAuth(email: string, oauthKey: string, oauthProvider: string, router: RouterInstance): Promise<LoginResult>;
export declare function signUpByOAuth(router: RouterInstance, oauthKey: string, oauthProvider: string, email: string, firstName?: string, lastName?: string): Promise<LoginResult>;
/**
 * Main login function for authenticating a user.
 *
 * @param authRequest - The authentication request payload. See {@link AuthRequest}.
 * @param router - The application router instance for navigation after login. See {@link RouterInstance}.
 */
export declare function login(authRequest: AuthRequest, router: RouterInstance): Promise<LoginResult>;
export declare function onLoginFormPermissions(): Promise<void>;
export declare function redirectAfterLogin(router: RouterInstance): void;
