/** * First letter uppercase, other lowercase * @category string * @example * ``` * capitalize('hello world') => 'Hello world' * ``` */ export declare function capitalize(str: string): string; export declare function lowercase(str: string): string; /** * Split any cased input strings into an array of words. */ export declare function split(value: string): string[]; /** * Split the input string into an array of words, separating numbers. */ export declare function splitSeparateNumbers(value: string): string[]; /** * Convert a string to space separated lower case (`foo bar`). */ export declare function noCase(input: string, options?: CaseOptions): string; /** * Convert a string to camel case (`fooBar`). */ export declare function camelCase(input: string, options?: PascalCaseOptions): string; /** * Convert a string to pascal case (`FooBar`). */ export declare function pascalCase(input: string, options?: PascalCaseOptions): string; /** * Convert a string to pascal snake case (`Foo_Bar`). */ export declare function pascalSnakeCase(input: string, options?: CaseOptions): string; /** * Convert a string to capital case (`Foo Bar`). */ export declare function capitalCase(input: string, options?: CaseOptions): string; /** * Convert a string to constant case (`FOO_BAR`). */ export declare function constantCase(input: string, options?: CaseOptions): string; /** * Convert a string to dot case (`foo.bar`). */ export declare function dotCase(input: string, options?: CaseOptions): string; /** * Convert a string to kebab case (`foo-bar`). */ export declare function kebabCase(input: string, options?: CaseOptions): string; /** * Convert a string to path case (`foo/bar`). */ export declare function pathCase(input: string, options?: CaseOptions): string; /** * Convert a string to path case (`Foo bar`). */ export declare function sentenceCase(input: string, options?: CaseOptions): string; /** * Convert a string to snake case (`foo_bar`). */ export declare function snakeCase(input: string, options?: CaseOptions): string; /** * Convert a string to header case (`Foo-Bar`). */ export declare function trainCase(input: string, options?: CaseOptions): string; export declare function paramCase(input: string, options?: CaseOptions): string; /** * Options used for converting strings to pascal/camel case. */ export declare interface PascalCaseOptions extends CaseOptions { mergeAmbiguousCharacters?: boolean } /** * Options used for converting strings to any case. */ export declare interface CaseOptions { locale?: Locale split?: (value: string) => string[] delimiter?: string prefixCharacters?: string suffixCharacters?: string } /** * Supported locale values. Use `false` to ignore locale. * Defaults to `undefined`, which uses the host environment. */ export type Locale = string[] | string | false | undefined; export * from './sponge-case'; export * from './swap-case'; export * from './title-case';