/** Represents a mapping of string or symbol keys to any value. */ export type keyMap = Record; /** Defines the accepted value types for the utility functions. */ export type cnxValues = keyMap | keyMap[] | Primitive | Primitive[] | BigInt | Date | Map | Set | cnxValues[]; export type Primitive = string | number | boolean | symbol | bigint | null | undefined; export type cnxStateValues = (v: T) => cnxValues; export type cnxStrings = cnxValues | TemplateStringsArray; export type cnxSeparator = string | number | boolean | null | undefined; /** * Serializes a given value into a space-separated string. * @param v - The value to be processed. * @returns A space-separated string representation of the value. */ declare function sv(v: cnxValues, sp?: string): string; /** * Recursively serializes objects into a key-value string format. * @param v - The value to be processed. * @returns A string representation of the object. */ declare function rv(v: cnxValues, sp?: string): string; /** * Serializes instances of Date, Map, and Set objects into a string format. * @param v - The value to be processed. * @returns A string representation of the instance. */ declare function iv(v: cnxValues, sp?: string): string; /** * Converts input values into a space-separated string. * @param args - Input values. * @returns The formatted string. */ declare function cnx(...args: cnxValues[]): string; declare namespace cnx { var raw: typeof cnxRaw; var trim: typeof cnxTrim; var serialize: typeof sv; var recursive: typeof rv; var instance: typeof iv; var separator: typeof spt; } /** Handle tagged template */ declare function cnxRaw(strings: cnxStrings, ...values: cnxValues[]): string; declare function spt(i: Primitive): string; declare function cnxTrim(input: cnxValues, separator?: cnxSeparator): string; export { cnx, cnxTrim as trim };