import { DataModels, IProcessDefinitionExtensionAdapter } from '@5minds/processcube_engine_sdk'; import { IdentityLike } from '../IdentityAccessor'; import { BaseClient } from './BaseClient'; type ProcessStartOptions = DataModels.ProcessInstances.ProcessStartOptions; type ProcessStartResponse = DataModels.ProcessInstances.ProcessStartResponse; export declare class ProcessDefinitionHttpClient extends BaseClient implements IProcessDefinitionExtensionAdapter { getAll(options?: { identity?: IdentityLike; offset?: number; limit?: number; includeXml?: boolean; includeCount?: boolean; }): Promise; getById(processDefinitionId: string, options?: { identity?: IdentityLike; includeXml?: boolean; }): Promise; getByProcessModelId(processModelId: string, options?: { identity?: IdentityLike; includeXml?: boolean; }): Promise; persistProcessDefinitions(xml: string | Array, options?: { overwriteExisting?: boolean; identity?: IdentityLike; }): Promise; deployFiles(filePaths: string | Array, options?: { overwriteExisting?: boolean; identity?: IdentityLike; }): Promise; startProcessInstance(options: ProcessStartOptions, identity?: IdentityLike): Promise; startProcessInstanceAndAwaitEndEvent(options: ProcessStartOptions, identity?: IdentityLike): Promise; startProcessInstanceAndAwaitSpecificEndEvent(options: DataModels.ProcessInstances.ProcessStartOptions, endEventId: string, identity?: IdentityLike): Promise; /** * @param deleteAllRelatedData Optional: If set to true, the Process Definition, as well as all related data, will be completely deleted. * Otherwise, the Process Definition will only be flagged as deleted, but all data will be kept. * Note that this won't do anything on engines with a version below v13.0.7. */ deleteById(processDefinitionId: string, identity?: IdentityLike, deleteAllRelatedData?: boolean): Promise; } export {};