UNPKG

@hashgraphonline/standards-agent-kit

Version:

A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.

47 lines (46 loc) 1.78 kB
import { BaseServiceBuilder, HederaAgentKit } from 'hedera-agent-kit'; import { InscriptionInput, InscriptionOptions, InscriptionResponse, RetrievedInscriptionResult } from '@hashgraphonline/standards-sdk'; /** * Type definition for DAppSigner since we don't have the actual package */ interface DAppSigner { getAccountId(): { toString(): string; }; } /** * Type definition for InscriptionSDK since we don't have the actual package */ interface InscriptionSDK { inscribeAndExecute(request: any, config: any): Promise<any>; inscribe(request: any, signer: any): Promise<any>; waitForInscription(txId: string, maxAttempts: number, intervalMs: number, checkCompletion: boolean, progressCallback?: Function): Promise<any>; } /** * Builder for Inscription operations */ export declare class InscriberBuilder extends BaseServiceBuilder { protected inscriptionSDK?: InscriptionSDK; constructor(hederaKit: HederaAgentKit); /** * Get or create Inscription SDK - temporarily returns null since we don't have the actual SDK */ protected getInscriptionSDK(options: InscriptionOptions): Promise<InscriptionSDK | null>; /** * Inscribe content using server-side authentication */ inscribe(input: InscriptionInput, options: InscriptionOptions): Promise<InscriptionResponse>; /** * Inscribe content using a DApp signer */ inscribeWithSigner(input: InscriptionInput, signer: DAppSigner, options: InscriptionOptions): Promise<InscriptionResponse>; /** * Retrieve an existing inscription */ retrieveInscription(transactionId: string, options: InscriptionOptions): Promise<RetrievedInscriptionResult>; /** * Close the inscription SDK */ close(): Promise<void>; } export {};