/** * =============================================================================== * * This file contains general purpose utilities which are not specific to one of * the plugins. * * =============================================================================== */ /** * Return the last item of the given array. */ export declare function getLast(items: T): T[number]; export declare const objectKeys: (o: T) => readonly Extract[]; /** * Enforces the invariant that the input is an array. */ export declare function arrayify(value: T | readonly T[]): readonly T[]; export declare const isNotNullOrUndefined: (input: null | undefined | T) => input is T; export declare const kebabToCamelCase: (value: string) => string; /** * Convert an array to human-readable text. */ export declare const toHumanReadableText: (items: readonly string[]) => string; export declare const toPattern: (value: readonly unknown[]) => RegExp; export declare function capitalize(text: T): Capitalize; export declare function withoutBracketsAndWhitespaces(text: string): string; //# sourceMappingURL=utils.d.ts.map