import { getString, join, words } from "../internal/string.mjs"; //#region src/string/index.d.ts /** * Dedent a string template, removing common leading whitespace from each line * * @returns Dedented string */ declare function dedent(strings: TemplateStringsArray, ...values: unknown[]): string; /** * Dedent a string, removing common leading whitespace from each line * * @param value String to dedent * @returns Dedented string */ declare function dedent(value: string): string; /** * Get a new UUID string _(version 4)_ for use in _HTML_ * * @param html Use _HTML_-friendly format * @returns UUID string */ declare function getUuid(html: true): string; /** * Get a new UUID string _(version 4)_ * * @returns UUID string */ declare function getUuid(): string; /** * Parse a JSON string into its proper value _(or `undefined` if it fails)_ * * @param value JSON string to parse * @param reviver Reviver function to transform the parsed values * @returns Parsed value or `undefined` if parsing fails */ declare function parse(value: string, reviver?: (this: unknown, key: string, value: unknown) => unknown): unknown; /** * Trim a string _(removing whitespace from both ends)_ * * @param value String to trim * @returns Trimmed string */ declare function trim(value: string): string; /** * Truncate a string to a specified length * * @param value String to truncate * @param length Maximum length of the string after truncation * @param suffix Suffix to append to the truncated string * @returns Truncated string */ declare function truncate(value: string, length: number, suffix?: string): string; //#endregion export { dedent, getString, getUuid, join, parse, trim, truncate, words };