/** * The lowercase letters `abcdefghijklmnopqrstuvwxyz`. * * @group String */ export declare const asciiLowercase = "abcdefghijklmnopqrstuvwxyz"; /** * The uppercase letters `ABCDEFGHIJKLMNOPQRSTUVWXYZ`. * * @group String */ export declare const asciiUppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; /** * The concatenation of the [[asciiLowercase]] and [[asciiUppercase]] constants. * * @group String */ export declare const asciiLetters: string; /** * The string `0123456789`. * * @group String */ export declare const digits = "0123456789"; /** * The string `0123456789abcdefABCDEF`. * * @group String */ export declare const hexdigits = "0123456789abcdefABCDEF"; /** * The string `01234567`. * * @group String */ export declare const octdigits = "01234567"; /** * String of ASCII characters which are considered punctuation characters in the C locale: * `!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~.` * * @group String */ export declare const punctuation = "!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~"; /** * Check if given value contains at least one letter. * * @example * ``` * isLetter('a') * // true * isLetter('-') * // false * ``` * @group String */ export declare function isLetter(value: string): boolean; /** * Truncates string * * @example * ``` * truncate('Hello world', 8) * // Hello... * ``` * @group String */ export declare function truncate(value: string, length: number, ending?: string): string; /** * Extract words from text. * * @example * ``` * extractWords('Hello-world!') * // ['Hello', 'world'] * ``` * @group String */ export declare function extractWords(value: string): string[]; /** * Convert a dash/dot/underscore/space separated string to camelCase * * @example * ``` * camelCase('foo-bar'); * // 'fooBar' * ``` * @group String */ export declare function camelCase(value: string): string; /** * Convert a dash/dot/underscore/space separated string to PascalCase * * @example * ``` * pascalCase('foo-bar'); * // 'FooBar' * ``` * @group String */ export declare function pascalCase(value: string): string; /** * Convert the first letter in each to word upper case * * @example * ``` * titleCase('hello world'); * // 'Hello World' * ``` * @group String */ export declare function titleCase(value: string): string; /** * Convert a string to `kebab-case`. * * @example * ``` * kebabCase('fooBar') // 'foo-bar' * kebabCase('Foo Bar baz') // 'foo-bar-baz' * kebabCase('XMLHttpRequest') // 'xml-http-request' * ``` * @group String */ export declare function kebabCase(value: string): string; /** * Convert a string to `snake_case`. * * @example * ``` * snakeCase('fooBar') // 'foo_bar' * snakeCase('Foo Bar baz') // 'foo_bar_baz' * snakeCase('XMLHttpRequest') // 'xml_http_request' * ``` * @group String */ export declare function snakeCase(value: string): string; /** * Remove diacritical marks from characters (e.g. `á → a`, `ñ → n`). * * Uses Unicode NFD normalization, so it handles arbitrary scripts. * * @example * ``` * stripAccents('árvíztűrő tükörfúrógép') * // 'arvizturo tukorfurogep' * ``` * @group String */ export declare function stripAccents(value: string): string; /** * Convert a string to a URL-safe slug. * * Strips diacritics, lowercases, and replaces non-alphanumeric runs with `-`. * Trailing/leading dashes are removed. * * @example * ``` * slugify('Hello, World!') // 'hello-world' * slugify('Árvíztűrő tükörfúrógép') // 'arvizturo-tukorfurogep' * ``` * @group String */ export declare function slugify(value: string): string; /** * Escape a string for safe use inside a `RegExp` literal. * * @example * ``` * new RegExp(escapeRegex('a.b+c')) * // /a\.b\+c/ * ``` * @group String */ export declare function escapeRegex(value: string): string; /** * Remove leading indentation from multiline string literals. * @param strings * @param values * @returns */ export declare function outdent(strings: TemplateStringsArray, ...values: unknown[]): string;