import { InjectionToken } from '@angular/core'; import { FormControl, ValidatorFn } from '@angular/forms'; import { ApplicationUser } from '@mtna/core-user-ui'; import { DefaultFields } from './fields.model'; import { ErrorMessages } from './messages.model'; import { AccountMode, Mode } from './mode.model'; /** * Config class to pass to mtna-user-account. All params are optional and Used * if an additional action would like to be done other than the default ones. */ export interface UserAccountConfig { /** @deprecated no longer used in mtna-lib-ui v21+ */ accountInfoProgress?: boolean; emailValidators?: ValidatorFn[]; /** @deprecated no longer used in mtna-lib-ui v21+ */ errorMessage?: string | null; errorMessages?: ErrorMessages[]; /** Map of custom controls to include in the form. Should be keyed on the formcontrol name. */ extraFormControls?: Map; fieldOrder: Map; firstNameValidators?: ValidatorFn[]; /** @deprecated no longer used in mtna-lib-ui v21+ */ isLoadingEnabled?: boolean; lastNameValidators?: ValidatorFn[]; /** @deprecated no longer used in mtna-lib-ui v21+ */ mode: Mode; omitFields: Array; /** the path to navigate upon clicking the discard button */ cancelPath?: string; /** @deprecated no longer used in mtna-lib-ui v21+. User is retrieved from api. */ user: U; } /** * An object of values for configuring the MtnaUserAccount */ export interface MtnaUserAccountConfig { mode?: AccountMode; cancelPath?: string; } /** * Token for injecting MtnaUserAccount configuration information */ export declare const MTNA_USER_ACCOUNT_CONFIG: InjectionToken;