/** * @name capitalCase * @namespace shared.string * @type Function * @platform js * @platform node * @status stable * * Capital case a string * * @param {String} text The string to snakeCase * @return {String} The snakeCased string * * @todo tests * * @snippet __capitalCase($1) * * @example js * import { __capitalCase } from '@lotsof/sugar/string'; * __capitalCase('hello world'); // => HELLO WORLD * * @see https://www.npmjs.com/package/change-case * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __capitalCase(text: string): string;