/** * Copied from https://github.com/blakeembrey/change-case/blob/main/packages/change-case/src/index.ts * * Reason: keep CLI casing helpers local and dependency-free. */ /** * Supported locale values. Use `false` to ignore locale. * Defaults to `undefined`, which uses the host environment. */ export type Locale = string[] | string | false | undefined; /** * Options used for converting strings to pascal/camel case. */ export interface PascalCaseOptions extends Options { /** Merge ambiguous characters before applying PascalCase conversion. */ mergeAmbiguousCharacters?: boolean; } /** * Options used for converting strings to any case. */ export interface Options { /** Locale passed to `String.prototype.toLocaleLowerCase` and `toLocaleUpperCase`. */ locale?: Locale; /** Custom word splitter used before applying the requested case conversion. */ split?: (value: string) => string[]; /** * Enables legacy number splitting during word normalization. * * @deprecated Pass `split: splitSeparateNumbers` instead. */ separateNumbers?: boolean; /** Delimiter inserted between normalized words for delimiter-based cases. */ delimiter?: string; /** Characters preserved at the beginning of the converted value. */ prefixCharacters?: string; /** Characters preserved at the end of the converted value. */ suffixCharacters?: 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?: Options): 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?: Options): string; /** * Convert a string to capital case (`Foo Bar`). */ export declare function capitalCase(input: string, options?: Options): string; /** * Convert a string to constant case (`FOO_BAR`). */ export declare function constantCase(input: string, options?: Options): string; /** * Convert a string to dot case (`foo.bar`). */ export declare function dotCase(input: string, options?: Options): string; /** * Convert a string to kebab case (`foo-bar`). */ export declare function kebabCase(input: string, options?: Options): string; /** * Convert a string to path case (`foo/bar`). */ export declare function pathCase(input: string, options?: Options): string; /** * Convert a string to path case (`Foo bar`). */ export declare function sentenceCase(input: string, options?: Options): string; /** * Convert a string to snake case (`foo_bar`). */ export declare function snakeCase(input: string, options?: Options): string; /** * Convert a string to header case (`Foo-Bar`). */ export declare function trainCase(input: string, options?: Options): string; //# sourceMappingURL=change-case.d.ts.map