import { TaskRef } from './TaskRef'; import { AbstractRef, IClassRef, IEntityRef, IJsonSchema, METADATA_TYPE } from '@allgemein/schema-api'; import { TaskExchangeRef } from './TaskExchangeRef'; import { ITasksConfig } from './ITasksConfig'; import { ITaskRefOptions } from './ITaskRefOptions'; import { ITaskInfo } from './ITaskInfo'; import { ITaskPropertyRefOptions } from './ITaskPropertyRefOptions'; import { Binding } from '@allgemein/schema-api/lib/registry/Binding'; import { AbstractRegistry } from '@allgemein/schema-api/lib/registry/AbstractRegistry'; import { IJsonSchemaSerializeOptions } from '@allgemein/schema-api/lib/json-schema/IJsonSchemaSerializeOptions'; export declare class Tasks extends AbstractRegistry implements IJsonSchema { static NAME: string; static taskId: number; nodeId: string; config: ITasksConfig; setConfig(config?: ITasksConfig): void; getNodeId(): string; setNodeId(nodeId: string): void; getTasks(withRemote?: boolean): TaskRef[]; getTasksByNames(names?: string | string[]): TaskRef[]; getTaskNames(withRemote?: boolean): string[]; get(name: string): TaskRef; access(name: string): boolean; createTaskRef(options: ITaskRefOptions & ITaskInfo & { title?: string; taskName?: string; nodeId?: string; }): any; create(context: string, options: ITaskRefOptions & ITaskInfo & { title?: string; taskName?: string; nodeId?: string; } | ITaskPropertyRefOptions): T; addTask(name: string | object | Function, fn?: object | Function, options?: ITaskRefOptions, withProperties?: boolean): TaskRef; addRemoteTask(nodeId: string, remoteRef: TaskRef, hasWorker?: boolean, withProperties?: boolean): TaskRef; addTaskRef(task: TaskRef, nodeId: string, hasWorker?: boolean, withProperties?: boolean): TaskRef; removeTask(task: TaskRef): void; /** * * @param name * @param fn * @param options * @deprecated */ new(name: string | Function, fn?: Function, options?: any): TaskRef; contains(name: string): boolean; private containsTask; private containsGroup; /** * Fires src as subtask of dest * * src attachTo dest * * @param src * @param dest */ group(src: string, dest: string): this; /** * Fires src after execution of dest * * src dependsOn dest * * @param src * @param dest */ dependsOn(src: string, dest: string): this; taskGroup(name: string): TaskRef; taskMap(new_name: string, name: string): TaskRef; task(name: string, fn: Function, options: any): TaskRef; register(xsdef: AbstractRef | Binding): AbstractRef | Binding; getPropertyRef(ref: IClassRef | IEntityRef, name: string): TaskExchangeRef; getPropertyRefs(ref: IClassRef | IEntityRef): TaskExchangeRef[]; /** * Return a class ref for passing string, Function or class ref * * @param object * @param type */ getClassRefFor(object: string | Function | IClassRef, type: METADATA_TYPE): IClassRef; toJsonSchema(options?: IJsonSchemaSerializeOptions): Promise; fromJsonSchema(orgJson: any): Promise; }