import { Process as Process$1 } from '../aoconnect/units/compute/results/Process.js'; import { G as GetResponse } from '../../Compute-f53b8251.js'; import { Message } from '../aoconnect/units/messenger/Message.js'; import { Client } from '../aoconnect/Client.js'; import { AoConnect } from '../aoconnect/interfaces/AoConnect.js'; import { DryRun } from '../aoconnect/units/compute/DryRun.js'; import '../ao/v0/types/UnitInfo.js'; import '../ao/v0/types/DryRunResult.js'; import '../ao/v0/types/Result.js'; import '../ao/v0/types/HTTPResponse.js'; import '../aoconnect/builders/TransactionBuilder.js'; import '../../standard/transactions/format-2/TransactionBuilder.js'; import '../../core/AbstractTransactionBuilder.js'; import '../../core/interfaces/Transaction.js'; import '../../standard/transactions/format-2/interfaces/TransactionFormat2.js'; import '../ao/v0/Client.js'; import '../ao/v0/interfaces/Client.js'; import '../ao/v0/units/Messenger.js'; import '../ao/v0/interfaces/MessengerUnit.js'; import '../ao/v0/units/messenger/Monitor.js'; import '../ao/v0/units/messenger/monitor/Process.js'; import '../../Scheduler-a419272c.js'; import '../ao/v0/types/Assignment.js'; import '../ao/v0/types/Transaction.js'; import '../ao/v0/types/Owner.js'; import '../ao/v0/types/Tag.js'; import '../ao/v0/types/Message.js'; import '../ao/v0/types/UnitTimestamp.js'; import '../aoconnect/units/Compute.js'; import '../aoconnect/units/compute/Result.js'; import '../aoconnect/units/compute/result/Message.js'; import '../aoconnect/units/compute/Results.js'; import '../aoconnect/units/Messenger.js'; import '../aoconnect/units/messenger/Spawn.js'; 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 };