import { OpaqueType } from "../opaque-type/index.js"; /** * Represents an object with a toString() method. */ export interface Stringifiable { toString(): string; } /** * Represents an object that has been converted to a string. */ export type StringEncoded = OpaqueType; /** * Converts the given object to a string. * @param value The object to convert to a string * @returns The string that represents the object * @example * ```ts * const hugeNumberString = stringEncode(99999999n); * // typeof hugeNumberString = StringEncoded * const hugeNumber = BigInt(hugeNumberString) * // typeof hugeNumber = bigint * ``` */ export declare function stringEncode(value: T): StringEncoded;