import * as plugins from '../plugins.js';
import * as interfaces from '../../dist_ts_interfaces/index.js';
export interface ILoginState {
    identity: interfaces.data.IIdentity | null;
    isLoggedIn: boolean;
}
export type IAdminBootstrapStatus = interfaces.requests.IReq_GetAdminBootstrapStatus['response'];
export declare const loginStatePart: plugins.deesElement.domtools.plugins.smartstate.StatePart<string, ILoginState>;
interface IActionContext {
    identity: interfaces.data.IIdentity | null;
}
export declare const getActionContext: () => IActionContext;
export declare const loginAction: plugins.deesElement.domtools.plugins.smartstate.StateAction<ILoginState, {
    username: string;
    password: string;
    authSource?: interfaces.requests.TAdminLoginAuthSource;
}>;
export declare function getAdminBootstrapStatus(): Promise<IAdminBootstrapStatus>;
export declare function createInitialAdminUser(optionsArg: {
    email: string;
    name?: string;
    password: string;
    enableIdpGlobalAuth?: boolean;
}): Promise<{
    success: boolean;
    identity?: interfaces.data.IIdentity;
    user?: interfaces.requests.IAdminUserProjection;
}>;
export declare const logoutAction: plugins.deesElement.domtools.plugins.smartstate.StateAction<ILoginState, unknown>;
export {};
