import { JsonPrimitive } from 'type-fest'; /** * Given a `text` and a list of `values` it returns always the same value given the same `text`. * For example this is used when you need to map a full name with a color. * ``` * getDeterministicValue('Doe', ['#FFFFFF', '#000000']) // => '#FFFFFF' * ``` */ export declare function getDeterministicValue(text: string, values: readonly string[]): string | undefined; /** * Get initials given a text. * @example getInitials('Ringo Starr') -> 'RS' */ export declare function getInitials(text: string): string; /** * Humanize a given string by transforming first letter to be uppercase and by removing spaces and underscores. * @example humanizeString('--First_Name') -> 'First name' */ export declare function humanizeString(str: string): string; /** * Check whether a given value is a valid JSON primitive (`string | number | boolean | null`) * @param value anything * @returns value is a JSON primitive */ export declare function isJsonPrimitive(value: any): value is JsonPrimitive;