/** * @license * Copyright 2022-2024 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ export declare function capitalize(text: T): Capitalize; /** * Converts identifiers of the form "foo-bar", "foo_bar", "foo bar", "foo*bar", * "fooBar" or "FOOBar" into "fooBar" or "FooBar". */ export declare function camelize(name: string, upperFirst?: boolean): string; /** * Converts an identifier from CamelCase to snake_case. */ export declare function decamelize(name: string, separator?: string): string; /** * Like JSON.stringify but targets well-formed JS and is slightly more readable. */ export declare function serialize(value: any): string | undefined; export declare namespace serialize { /** * Custom serialization function key. */ const SERIALIZE: unique symbol; /** * Mark a value as serialized so the serializer just uses its string * representation. */ function asIs(value: any): any; /** * Test whether a value serializes as a structure or a primitive. */ function isPrimitive(value: any): boolean; } /** * Create a human readable version of a list of items. */ export declare function describeList(setType: "and" | "or", ...entries: string[]): string; //# sourceMappingURL=String.d.ts.map