@bit-gpt/h402
Version:
BitGPT's 402 open protocol for blockchain-native payments
13 lines • 504 B
TypeScript
/**
* Converts a string to hex encoding, works in both browser and Node.js environments
* @param str - The string to convert to hex
* @returns The hex string (without 0x prefix)
*/
export declare function stringToHex(str: string): string;
/**
* Converts a hex string to its original string representation
* @param hex - The hex string to convert (without 0x prefix)
* @returns The original string
*/
export declare function hexToString(hex: string): string;
//# sourceMappingURL=encoding.d.ts.map