/** * String-focused utility helpers. * * @module bquery/core/utils/string */ /** * Capitalizes the first letter of a string. * * @param str - The string to capitalize * @returns The capitalized string * * @example * ```ts * capitalize('hello'); // 'Hello' * ``` */ export declare function capitalize(str: string): string; /** * Converts a string to kebab-case. * * @param str - The string to convert * @returns The kebab-cased string * * @example * ```ts * toKebabCase('myVariableName'); // 'my-variable-name' * ``` */ export declare function toKebabCase(str: string): string; /** * Converts a string to camelCase. * * @param str - The string to convert * @returns The camelCased string * * @example * ```ts * toCamelCase('my-variable-name'); // 'myVariableName' * ``` */ export declare function toCamelCase(str: string): string; /** * Truncates a string to a maximum length. * * @param str - The string to truncate * @param maxLength - The maximum length * @param suffix - The suffix to append when truncating (default: '…') * @returns The truncated string * * @example * ```ts * truncate('Hello world', 8); // 'Hello w…' * ``` */ export declare function truncate(str: string, maxLength: number, suffix?: string): string; /** * Converts a string to a URL-friendly slug. * * @param str - The string to slugify * @returns The slugified string * * @example * ```ts * slugify('Hello, World!'); // 'hello-world' * ``` */ export declare function slugify(str: string): string; /** * Escapes a string for safe usage inside a RegExp. * * @param str - The string to escape * @returns The escaped string * * @example * ```ts * escapeRegExp('[a-z]+'); // '\\[a-z\\]+' * ``` */ export declare function escapeRegExp(str: string): string; //# sourceMappingURL=string.d.ts.map