export type PipeFunction = (value: any, ...args: any[]) => any; /** * Converts a string to uppercase * @param value The string to convert * @returns The uppercase string */ export declare function uppercasePipe(value: string): string; /** * Converts a string to lowercase * @param value The string to convert * @returns The lowercase string */ export declare function lowercasePipe(value: string): string; /** * Capitalizes the first character of a string * @param value The string to capitalize * @returns The capitalized string */ export declare function capitalizePipe(value: string): string; /** * Truncates a string to a specified length and adds ellipsis * @param value The string to truncate * @param length Maximum length before truncation * @returns The truncated string with ellipsis if needed */ export declare function truncatePipe(value: string, length: string): string; /** * Formats a number as USD currency * @param value The number to format * @returns Formatted currency string */ export declare function currencyPipe(value: number): string; /** * Formats a date value according to the specified format * @param value Date value (string, number, or Date object) * @param format Format type: 'short', 'long', or default (ISO) * @returns Formatted date string */ export declare function datePipe(value: string | number | Date, format?: string): string; /** * Joins array elements with the specified separator * @param value Array to join * @param separator Character(s) to use between elements (defaults to comma) * @returns Joined string or original value if not an array */ export declare function joinPipe(value: any[], separator?: string): string | any; /** * Returns the first element of an array * @param value Array to extract from * @returns First element or empty string if array is empty/invalid */ export declare function firstPipe(value: any[]): any; /** * Returns the last element of an array * @param value Array to extract from * @returns Last element or empty string if array is empty/invalid */ export declare function lastPipe(value: any[]): any; /** * Returns the keys of an object * @param value Object to extract keys from * @returns Array of object keys or empty array if not an object */ export declare function keysPipe(value: object): string[]; /** * Returns a default value if the input is falsy * @param value Input value to check * @param defaultValue Value to return if input is falsy * @returns Original value or default value */ export declare function defaultPipe(value: any, defaultValue: string): any; /** * Implements ternary operator as a pipe * @param value Condition to evaluate * @param trueValue Value to return if condition is truthy * @param falseValue Value to return if condition is falsy * @returns Selected value based on condition */ export declare function ternaryPipe(value: any, trueValue: string, falseValue: string): string; /** * Creates and returns a map of all available pipe functions * @returns Map of pipe name to pipe function */ export declare function createPipeRegistry(): Map; export declare const defaultPipes: Map; /** * Applies a series of pipes to a value * @param value Initial value to transform * @param pipes Array of pipe strings (name and optional arguments separated by ':') * @param pipeFunctions Optional custom pipe registry (uses defaultPipes if not provided) * @returns The transformed value after applying all pipes */ export declare function applyPipes(value: any, pipes: string[], pipeFunctions?: Map): any;