@iota-pico/data
Version:
IOTA Pico Framework Data Structures and Helpers
20 lines (19 loc) • 675 B
TypeScript
import { Trytes } from "../data/trytes";
import { ITrytesConverter } from "../interfaces/ITrytesConverter";
/**
* Trytes converter that converts to and from a string.
*/
export declare class AsciiTrytesConverter implements ITrytesConverter<string> {
/**
* Convert a string value into trytes.
* @param value value to convert into trytes.
* @returns The trytes representation of the value.
*/
to(value: string): Trytes;
/**
* Convert trytes into a string value.
* @param trytes to convert into a string value.
* @returns The string value converted from the trytes.
*/
from(trytes: Trytes): string;
}