import type { DeepPrimitiveMap } from "@garden-io/grow-sdk/util/types"; import type { CommonTaskParams, TaskProcessParams } from "../tasks/base"; import { BaseTask } from "../tasks/base"; export type TestTaskCallback = (params: { task: BaseTask; params: TaskProcessParams; }) => Promise; interface TestTaskParams extends CommonTaskParams { dirty?: boolean; name?: string; callback?: TestTaskCallback; statusCallback?: TestTaskCallback; dependencies?: BaseTask[]; statusDependencies?: BaseTask[]; } type TestTaskResult = { id: string; processed: boolean; callbackResult: string | undefined; needsProcessing: boolean; }; export declare class TestTask extends BaseTask { readonly statusConcurrencyLimit = 10; readonly executeConcurrencyLimit = 10; readonly type = "test"; name: string; dirty: boolean; callback: TestTaskCallback | null; statusCallback?: TestTaskCallback | null; dependencies: BaseTask[]; statusDependencies: BaseTask[]; constructor(params: TestTaskParams); resolveStatusDependencies(): BaseTask[]; resolveProcessDependencies(): BaseTask[]; getName(): string; getId(): string; getDescription(): string; getInputVersion(): string; export(result: TestTaskResult): DeepPrimitiveMap; getStatus(params: TaskProcessParams): Promise<{ id: string; processed: boolean; callbackResult: string | undefined; needsProcessing: boolean; } | null>; process(params: TaskProcessParams): Promise<{ id: string; processed: boolean; callbackResult: string | undefined; needsProcessing: boolean; }>; } export {};