import { Model } from './model'; export declare namespace IWorkflow { const Cpu: { label: string; value: number; }[]; const Memory: { label: string; value: number; }[]; const Parallelisms: { label: string; value: number; }[]; const Storage: { label: string; value: number; }[]; interface Dag { tasks: Task[]; } interface Env { name: string; value: string; } interface Node { _id?: string; children?: string[]; displayName?: string; finishedAt?: Date; message?: string; name?: string; outboundNodes?: string[]; phase?: string; startedAt?: Date; templatename?: string; type?: string; } interface RetryStrategy { limit: number; retryPolicy: RetryStrategyRetryPolicy; } enum RetryStrategyRetryPolicy { OnError = "OnError", OnFailure = "OnFailure" } interface Script { args?: string[]; command?: string[]; env?: Env[]; image: string; source: string; workingDir?: string; } interface Sidecar { args?: string[]; command?: string[]; env?: Env[]; image: string; name: string; } interface Spec { entrypoint: string; parallelism: number; templates?: Template[]; } interface Status { finishedAt?: Date; message?: string; nodes?: Node[]; phase?: string; startedAt?: Date; version?: string; } interface Task { dependencies?: string[]; name: string; template: string; } interface Template { dag?: Dag; name: string; retryStrategy?: RetryStrategy; script: Script; sidecars?: Sidecar[]; } } export declare class Workflow extends Model { _id: string; cpu: number; createdAt: Date; preemptible: boolean; memory: number; name: string; namespaceId: string; spec: IWorkflow.Spec; status: IWorkflow.Status; storage: number; updatedAt: Date; constructor(params?: Partial); getNestedStatusNodes(): { children: any; finishedAt: Date; message: string; phase: string; startedAt: Date; type: string; }[]; private getChildren; }