/** * Capitalize the first word of the string * * capitalize('hello') -> 'Hello' * capitalize('va va voom') -> 'Va va voom' */ export declare const capitalize: (str: string) => string; /** * Formats the given string in camel case fashion * * camel('hello world') -> 'helloWorld' * camel('va va-VOOM') -> 'vaVaVoom' * camel('helloWorld') -> 'helloWorld' */ export declare const camel: (str: string) => string; /** * Formats the given string in snake case fashion * * snake('hello world') -> 'hello_world' * snake('va va-VOOM') -> 'va_va_voom' * snake('helloWord') -> 'hello_world' */ export declare const snake: (str: string, options?: { splitOnNumber?: boolean; }) => string; /** * Formats the given string in dash case fashion * * dash('hello world') -> 'hello-world' * dash('va va_VOOM') -> 'va-va-voom' * dash('helloWord') -> 'hello-word' */ export declare const dash: (str: string) => string; /** * Formats the given string in pascal case fashion * * pascal('hello world') -> 'HelloWorld' * pascal('va va boom') -> 'VaVaBoom' */ export declare const pascal: (str: string) => string; /** * Formats the given string in title case fashion * * title('hello world') -> 'Hello World' * title('va_va_boom') -> 'Va Va Boom' * title('root-hook') -> 'Root Hook' * title('queryItems') -> 'Query Items' */ export declare const title: (str: string | null | undefined) => string; /** * template is used to replace data by name in template strings. * The default expression looks for {{name}} to identify names. * * Ex. template('Hello, {{name}}', { name: 'ray' }) * Ex. template('Hello, ', { name: 'ray' }, /<(.+?)>/g) */ export declare const template: (str: string, data: Record, regex?: RegExp) => string; /** * Trims all prefix and suffix characters from the given * string. Like the builtin trim function but accepts * other characters you would like to trim and trims * multiple characters. * * ```typescript * trim(' hello ') // => 'hello' * trim('__hello__', '_') // => 'hello' * trim('/repos/:owner/:repo/', '/') // => 'repos/:owner/:repo' * trim('222222__hello__1111111', '12_') // => 'hello' * ``` */ export declare const trim: (str: string | null | undefined, charsToTrim?: string) => string;