import { WorkflowStep } from '@rundeck/client/dist/lib/models/index'; export interface IRenderedStep { stepNumber: string; label: string; type: string; } export declare type RenderedStepList = Array; export declare class JobWorkflow { readonly workflow: WorkflowStep[]; static CONTEXT_STRING_SEPARATOR: string; constructor(workflow: WorkflowStep[]); contextType(ctx: string | string[]): "command" | "job" | "script" | "scriptfile" | "scripturl" | "node-step-plugin plugin" | "workflow-step-plugin plugin" | "plugin" | "console"; renderContextStepNumber(ctx: string | string[]): string; renderContextString(ctx: string | string[]): string; renderStepsFromContextPath(ctx: string | string[]): RenderedStepList; static isErrorhandlerForContextId(ctxid: string): boolean; static stepNumberForContextId(ctxid: string): number | null; static workflowIndexForContextId(ctxid: string): number | null; static paramsForContextId(ctxid: string): string | null; /** * Returns array of step context strings given the context identifier */ static parseContextId(context: string | string[]): string[] | null; static createContextId(contextArr: string[]): string | null; /** * Removes error handler/parameters from the context path */ static cleanContextId(context: string): string | null; static splitEscaped(input: string, sep: string): string[]; /** * Join array strings into single string using the separator, escaping * internal chars with backslash */ static joinEscaped: (arr: string[], sep: string) => string; /** * Escape listed chars in the string with the escape char */ static escapeStr: (str: string, echar: string, chars: string[]) => string; static unescape(input: string, echar: string, chars: string[], breakchars: string[]): { text: string; bchar: string | null; rest: string | null; }; }