import * as pb from "../proto/orchestrator_service_pb"; import { Task } from "./task"; export declare class CompletableTask extends Task { constructor(); complete(result: T): void; fail(message: string, details?: pb.TaskFailureDetails): void; /** * Fails the task with a pre-constructed error. * Use this when a more specific error type (e.g., EntityOperationFailedException) * should be preserved as the task's exception rather than wrapping in a generic TaskFailedError. */ failWithError(error: Error): void; }