/** * Replaces underscores, spaces, or camelCase with dashes. * * ```js * import { dasherize } from '@warp-drive/utilities/string'; * * dasherize('innerHTML'); // 'inner-html' * dasherize('action_name'); // 'action-name' * dasherize('css-class-name'); // 'css-class-name' * dasherize('my favorite items'); // 'my-favorite-items' * dasherize('privateDocs/ownerInvoice'; // 'private-docs/owner-invoice' * ``` * * @public * @since 4.13.0 */ export declare const dasherize: (str: string) => string; /** * Returns the lowerCamelCase form of a string. * * ```js * import { camelize } from '@warp-drive/utilities/string'; * * camelize('innerHTML'); // 'innerHTML' * camelize('action_name'); // 'actionName' * camelize('css-class-name'); // 'cssClassName' * camelize('my favorite items'); // 'myFavoriteItems' * camelize('My Favorite Items'); // 'myFavoriteItems' * camelize('private-docs/owner-invoice'); // 'privateDocs/ownerInvoice' * ``` * * @public * @since 4.13.0 */ export declare function camelize(str: string): string; /** * Returns the lower\_case\_and\_underscored form of a string. * * ```js * import { underscore } from '@warp-drive/utilities/string'; * * underscore('innerHTML'); // 'inner_html' * underscore('action_name'); // 'action_name' * underscore('css-class-name'); // 'css_class_name' * underscore('my favorite items'); // 'my_favorite_items' * underscore('privateDocs/ownerInvoice'); // 'private_docs/owner_invoice' * ``` * * @public * @since 4.13.0 */ export declare function underscore(str: string): string; /** * Returns the Capitalized form of a string * * ```js * import { capitalize } from '@warp-drive/utilities/string'; * * capitalize('innerHTML') // 'InnerHTML' * capitalize('action_name') // 'Action_name' * capitalize('css-class-name') // 'Css-class-name' * capitalize('my favorite items') // 'My favorite items' * capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice' * ``` * * @public * @since 4.13.0 */ export declare function capitalize(str: string): string; /** * Sets the maximum size of the LRUCache for all string transformation functions. * The default size is 10,000. * * @public * @since 4.13.0 */ export declare function setMaxLRUCacheSize(size: number): void;