@hashgraphonline/conversational-agent
Version:
Hashgraph Online conversational AI agent implementing HCS-10 communication, HCS-2 registries, and content inscription on Hedera. https://hol.org
41 lines (39 loc) • 1.1 kB
TypeScript
import { ContentStoreManager as PackageContentStoreManager } from './content-store-manager';
export interface AttachmentData {
name: string;
data: string;
type: string;
size: number;
}
export type ContentStoreManager = PackageContentStoreManager;
/**
* Utility for processing file attachments and content references
*/
export declare class AttachmentProcessor {
private logger;
constructor();
/**
* Process attachments and create content references
*/
processAttachments(content: string, attachments: AttachmentData[], contentStoreManager?: ContentStoreManager): Promise<string>;
/**
* Process attachments using content store manager
*/
private processWithContentStore;
/**
* Process attachments with simple file references
*/
private processWithSimpleReferences;
/**
* Create inline reference for small files
*/
private createInlineReference;
/**
* Create formatted file list
*/
private createFileList;
/**
* Format file size for display
*/
private formatFileSize;
}