/** * Text transformer. */ export declare type TextTransformer = (text: string) => string; /** * Transform into a string with the separator * denoted by the next word capitalized. * * 'test string' => 'testString' * * @param text * @see https://github.com/blakeembrey/change-case#camelcase */ export declare const toCamelCase: TextTransformer; /** * Transform into a space separated string with each word capitalized. * * 'test string' => 'Test String' * * @param text * @see https://github.com/blakeembrey/change-case#capitalCase */ export declare const toCapitalCase: TextTransformer; /** * Transform into upper case string with an underscore between words. * * 'test string' => 'TEST_STRING' * * @param text * @see https://github.com/blakeembrey/change-case#constantCase */ export declare const toConstantCase: TextTransformer; /** * Transform into a lower case string with a period between words. * * 'test string' => 'test.string' * * @param text * @see https://github.com/blakeembrey/change-case#dotcase */ export declare const toDotCase: TextTransformer; /** * Transform into a lower cased string with dashes between words. * * 'test string' => 'test-string' * * @param text * @see https://github.com/blakeembrey/change-case#paramcase */ export declare const toKebabCase: TextTransformer; /** * Transforms the string to lower case. * * 'TEST STRING' => 'test string' * * @param text * @see https://github.com/blakeembrey/change-case#lowerCase */ export declare const toLowerCase: TextTransformer; /** * Transform into a string of capitalized words without separators. * * 'test string' => 'TestString' * * @param text * @see https://github.com/blakeembrey/change-case#pascalcase */ export declare const toPascalCase: TextTransformer; /** * Transform into a lower case string with slashes between words. * * 'test string' => 'test/string' * * @param text * @see https://github.com/blakeembrey/change-case#pathcase */ export declare const toPathCase: TextTransformer; /** * Transform into a lower case with spaces between words, * then capitalize the string. * * 'testString' => 'Test string' * * @param text * @see https://github.com/blakeembrey/change-case#sentencecase */ export declare const toSentenceCase: TextTransformer; /** * Transform into a lower case string with underscores between words. * * 'test string' => 'test_string' * * @param text * @see https://github.com/blakeembrey/change-case#snakeCase */ export declare const toSnakeCase: TextTransformer; /** * Transform a string into title case following English rules. * * 'a simple test' => 'A Simple Test' * * @param text * @see https://github.com/blakeembrey/change-case#titlecase */ export declare const toTitleCase: TextTransformer; /** * Perform trim operation * * ' a simple test ' => 'a simple test' * * @param text * @returns */ export declare const toTrim: TextTransformer; /** * Transforms the string to upper case. * * 'test string' => 'TEST STRING' * * @param text * @see https://github.com/blakeembrey/change-case#upperCase */ export declare const toUpperCase: TextTransformer; /** * Compose multiple TextTransformer into one. * @param transformers * @returns */ export declare function composeTextTransformers(...transformers: ReadonlyArray): TextTransformer;