import type { ActionType } from "@garden-io/grow-sdk/declarations/action-type"; import type { ActionState } from "../events/action-status-events"; import type { BaseTask, TaskProcessParams, TaskStatusParams } from "./base"; import type { BaseActionTask, ExecuteActionOutputs, ExecuteActionTask, ResolveActionTask } from "./base-action"; export declare function isResolveTask(task: BaseTask): task is ResolveActionTask; export declare function isExecuteTask(task: BaseTask): task is ExecuteActionTask; /** * Just to make action states look nicer in print. */ export declare function displayState(state: ActionState): string; export declare const displayStates: Partial>; /** * Decorator function for emitting status events to Cloud when calling * method {@link ExecuteActionTask.getStatus} on {@link ExecuteActionTask} * and for logging the operation lifecycle to the terminal. * * The wrapper emits the appropriate events before and after the inner function execution. */ export declare function logAndEmitGetStatusEvents(_target: BaseActionTask>, methodName: "getStatus", descriptor: TypedPropertyDescriptor<(...args: [TaskStatusParams]) => Promise | null>>): TypedPropertyDescriptor<(args_0: TaskStatusParams) => Promise | null>>; /** * Decorator function for emitting status events to Cloud when calling * method {@link BaseTask.process} on {@link ExecuteActionTask} and {@link DeleteDeployTask} * and for logging the operation lifecycle to the terminal. * * The wrapper emits the appropriate events before and after the inner function execution. */ export declare function logAndEmitProcessingEvents(_target: BaseActionTask>, methodName: "process", descriptor: TypedPropertyDescriptor<(...args: [TaskProcessParams>]) => Promise>>): TypedPropertyDescriptor<(args_0: TaskProcessParams>) => Promise>>;