import { InjectionToken, PipeTransform } from '@angular/core'; import { ObjectPropertySelector } from '../../reflection/resolve-object-property-selector'; export interface FullNameFormatOptions { firstNameSelector: ObjectPropertySelector; lastNameSelector: ObjectPropertySelector; titleSelector: ObjectPropertySelector; fallback?: any; } /** * Formats any object containing name information into a string. The string format can be provided * using the following tokens. If no format is present the pipe will default to "full". Additionally * any field can be backed up with a fallback value * * | Token | Description | Example | * | ------ | ------------------------------------------------------------- | ------------ | * | `FF` | The fully quantified first name of the person | Jane, John | * | `ff` | Shortened first letter format of the first name of the person | J. | * | `LL` | The fully quantified last name of the person | Doe | * | `ll` | Shortened first letter format of the last name of the person | D. | * | `TT` | The title of the person | Dr. | * * There's also a predefined selection of format aliases to choose from: * * | Alias | Format | Example | * | ----------- | ---------- | ------------- | * | `full` | `TT FF LL` | Dr. Jane Doe | * | `short` | `ff LL` | J. Doe | * | `shortLast` | `FF ll` | Jane D. | * | `reversed` | `LL, FF` | Doe, Jane | * * @param obj The object value to select the name information from * @param format The desired format to use for the output string value. Defaults to "full" * @param options Optional parameters that can be used during the format operation */ export declare function formatFullName(obj: any, format?: string, options?: FullNameFormatOptions): string; export declare const FULL_NAME_FORMAT: InjectionToken; export declare const FULL_NAME_FORMAT_OPTIONS: InjectionToken; export declare class FullNamePipe implements PipeTransform { readonly format: string; readonly options: FullNameFormatOptions; constructor(format: string, options: FullNameFormatOptions); transform(obj: any, format?: string, options?: FullNameFormatOptions): string; } export declare class FullNamePipeModule { }