@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
17 lines (16 loc) • 812 B
TypeScript
import type { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class TuiObfuscatePipe implements PipeTransform {
private readonly option;
/**
* Transforms the input value by obfuscating it according to the specified recipe or symbol.
*
* @param value The value to be obfuscated should be a string.
* @param recipe The name of the recipe to use for obfuscation or a single character symbol for custom obfuscation.
* @returns The obfuscated string.
* @throws Will throw an error if the specified recipe is not found.
*/
transform(value: string, recipe?: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<TuiObfuscatePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<TuiObfuscatePipe, "tuiObfuscate", true>;
}