import { Process as Process$1 } from '../aoconnect/units/compute/results/Process.cjs'; import { G as GetResponse } from '../../Compute-6614639f.js'; import { Message } from '../aoconnect/units/messenger/Message.cjs'; import { Client } from '../aoconnect/Client.cjs'; import { AoConnect } from '../aoconnect/interfaces/AoConnect.cjs'; import { DryRun } from '../aoconnect/units/compute/DryRun.cjs'; import '../ao/v0/types/UnitInfo.cjs'; import '../ao/v0/types/DryRunResult.cjs'; import '../ao/v0/types/Result.cjs'; import '../ao/v0/types/HTTPResponse.cjs'; import '../aoconnect/builders/TransactionBuilder.cjs'; import '../../standard/transactions/format-2/TransactionBuilder.cjs'; import '../../core/AbstractTransactionBuilder.cjs'; import '../../core/interfaces/Transaction.cjs'; import '../../standard/transactions/format-2/interfaces/TransactionFormat2.cjs'; import '../ao/v0/Client.cjs'; import '../ao/v0/interfaces/Client.cjs'; import '../ao/v0/units/Messenger.cjs'; import '../ao/v0/interfaces/MessengerUnit.cjs'; import '../ao/v0/units/messenger/Monitor.cjs'; import '../ao/v0/units/messenger/monitor/Process.cjs'; import '../../Scheduler-38c65aa3.js'; import '../ao/v0/types/Assignment.cjs'; import '../ao/v0/types/Transaction.cjs'; import '../ao/v0/types/Owner.cjs'; import '../ao/v0/types/Tag.cjs'; import '../ao/v0/types/Message.cjs'; import '../ao/v0/types/UnitTimestamp.cjs'; import '../aoconnect/units/Compute.cjs'; import '../aoconnect/units/compute/Result.cjs'; import '../aoconnect/units/compute/result/Message.cjs'; import '../aoconnect/units/compute/Results.cjs'; import '../aoconnect/units/Messenger.cjs'; import '../aoconnect/units/messenger/Spawn.cjs'; declare class Process { protected client: Client; protected process_id: string; constructor(aoconnect: AoConnect, processId: string); /** * Get an action request builder for the given action. * * @param action The name of the action to build the message for. * @returns The action builder -- predefined with this process' ID. * * @example * ```ts * // Get the process client -- targeting process ID "1557" * const proc = new Process(aoconnect, "1557"); * * // Build the action request * const action = proc * .action("some optional anchor") * .dataItemSigner(() => { * // ... code that aoconnect should use to sign this `DataItem` * }) * .data("optional data") * .tags({ * "Some-Optional-Tag": "some value", * }) * * // Send the action * const messageId = await action.post(); * * // - end of example - * ``` */ action(action: Actions): Message; /** * Get the DryRun message request builder for the given action. * * This method sets `.tags({ Action: action })`, so if you call `.tags()` and * overwrite the `Action` tag, then this DryRun message request will use the * `Action` you passed in. * * @param action The name of the action to build the DryRun message for. * @returns The DryRun message builder - predefined with this process' ID. */ dryRun(action: Actions): DryRun; /** * Get the result of the message with the given ID. * * @returns The message's result. * * @example * ```ts * // Get the process client -- targeting process ID "1557" * const proc = new Process(aoconnect, "1557"); * * // Get the result of message "1447" * const result = await proc.message("1447"); * * // - end of example - * ``` */ message(messageId: string): Promise; /** * Get the results request builder for this process. * * @returns The results builder -- predefined with this process' ID. * * @example * ```ts * // Get the process client -- targeting process ID "1557" * const proc = new Process(aoconnect, "1557"); * * // Build the results query * const query = proc * .results() * .from("optional 'from' starting point cursor") * .to("optional 'to' ending point cursor") * .limit(15) // Optional number of results to return * .sort("DESC") // Optional sort order of the results when they are returned * * // Send the query * const results = await query.post(); * * // - end of example - * ``` */ results(): Process$1; } export { Process };