UNPKG

@ar.io/sdk

Version:

[![codecov](https://codecov.io/gh/ar-io/ar-io-sdk/graph/badge.svg?token=7dXKcT7dJy)](https://codecov.io/gh/ar-io/ar-io-sdk)

34 lines (33 loc) 908 B
import { AOContract, AoClient, AoSigner } from '../../types/index.js'; import { ILogger } from '../logger.js'; export declare class AOProcess implements AOContract { private logger; readonly ao: AoClient; readonly processId: string; constructor({ processId, ao, logger, }: { processId: string; ao?: AoClient; logger?: ILogger; }); private isMessageDataEmpty; read<K>({ tags, retries, fromAddress, }: { tags?: Array<{ name: string; value: string; }>; retries?: number; fromAddress?: string; }): Promise<K>; send<K>({ tags, data, signer, retries, }: { tags: Array<{ name: string; value: string; }>; data?: string | undefined; signer: AoSigner; retries?: number; }): Promise<{ id: string; result?: K; }>; }