/** Angular2 */ import Cmf from "cmf.lbos"; import * as ng from "@angular/core"; /** Core */ import { Generic } from "cmf.core/src/core"; /** Nested components */ import { ConfirmDialogResult } from "cmf.core/src/domain/extensions/dialog"; /** * Authentication Validation type will receive a user and will return true or false for when validation succeeds or fails */ export declare type AuthenticationValidation = (user: Cmf.Foundation.Security.User, token: string, elementRef: ng.ElementRef) => Promise; export interface DialogValidateCredentialsProperties { defaultUser: Cmf.Foundation.Security.User; requiredRoles: Cmf.Foundation.Security.Role[]; allowSelfSign: boolean; requireSelfSign?: boolean; canEditUsername?: boolean; title?: string; authenticationValidation?: AuthenticationValidation; onClose(result: ConfirmDialogResult, signedUser?: Cmf.Foundation.Security.User | string): any; } export declare class DialogValidateCredentialsUtil extends Generic { /** * Open dialog validate credentials signature * @param elementRef The element reference */ openDialogValidateCredentials(elementRef: ng.ElementRef): Promise; }