UNPKG

649 BTypeScriptView Raw
1export interface Options extends SplitOptions {
2 locale?: Locale;
3}
4/**
5 * Convert any string into a lower case string with spaces between words.
6 */
7export declare function noCase(input: string, options?: Options): string;
8export interface SplitOptions {
9 separateNumbers?: boolean;
10}
11/**
12 * Split any cased input strings into an array of words.
13 */
14export declare function split(input: string, options?: SplitOptions): string[];
15export type Locale = string[] | string | false | undefined;
16export declare function toLower(locale: Locale): (input: string) => string;
17export declare function toUpper(locale: Locale): (input: string) => string;