@hashgraphonline/conversational-agent
Version:
Hashgraph Online conversational AI agent implementing HCS-10 communication, HCS-2 registries, and content inscription on Hedera. https://hol.org
18 lines (16 loc) • 605 B
TypeScript
import { EntityFormat, FormatConverter, ConversionContext } from '../types';
/**
* Converts Hedera topic IDs to HRL format for consensus service messages
*/
export declare class TopicIdToHrlConverter implements FormatConverter<string, string> {
sourceFormat: EntityFormat;
targetFormat: EntityFormat;
/**
* Check if the source string is a valid topic ID
*/
canConvert(source: string, _context: ConversionContext): boolean;
/**
* Convert topic ID to HRL format based on network type
*/
convert(topicId: string, context: ConversionContext): Promise<string>;
}