@ar.io/sdk
Version:
[](https://codecov.io/gh/ar-io/ar-io-sdk)
34 lines (33 loc) • 908 B
TypeScript
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;
}>;
}