//#region src/internal/string.d.ts /** * Get the string value from any value * * @param value Original value * @returns String representation of the value * * @example * ```typescript * getString(null) // => '' * getString('foo') // => 'foo' * getString(123) // => '123' * getString(true) // => 'true' * getString([1, 2, 3]) // => '1,2,3' * getString({a: 1}) // => '{"a":1}' * getString(() => 123) // => '123' * ``` */ declare function getString(value: unknown): string; declare function ignoreKey(key: string): boolean; declare function interpolate(strings: TemplateStringsArray, values: unknown[]): string; /** * Join an array of values into a string _(while ignoring empty values)_ * * _(`null`, `undefined`, and any values that become whitespace-only strings are considered empty)_ * * @param array Array of values * @param delimiter Delimiter to use between values * @returns Joined string */ declare function join(array: unknown[], delimiter?: string): string; declare function tryDecode(value: string): string; declare function tryEncode(value: boolean | number | string): unknown; /** * Split a string into words _(and other readable parts)_ * * @param value Original string * @returns Array of words found in the string */ declare function words(value: string): string[]; //#endregion export { getString, ignoreKey, interpolate, join, tryDecode, tryEncode, words };