import { DataModels, DeleteProcessInstanceQuery, Identity } from '../index'; export interface IProcessInstanceExtensionAdapter { query(query: DataModels.ProcessInstances.ProcessInstanceQuery, options?: { identity?: Identity; includeXml?: boolean; offset?: number; limit?: number; sortSettings?: DataModels.ProcessInstances.ProcessInstanceSortSettings; includeCount?: boolean; }): Promise; getProcessDefinition(processInstanceId: string, options?: { identity?: Identity; includeXml?: boolean; }): Promise; getProcessModel(processInstanceId: string, identity?: Identity): Promise; transferOwnership(processInstanceId: string, newOwner: Identity, identity?: Identity): Promise; terminateProcessInstance(processInstanceId: string, identity?: Identity): Promise; retryProcessInstance(processInstanceId: string, options?: { flowNodeInstanceId?: string; newStartToken?: any; identity?: Identity; }): Promise; /** * @deprecated Use "delete" instead. */ deleteProcessInstances(processInstanceIds: Array, deleteAllRelatedData: boolean, identity?: Identity): Promise; /** * Deletes process instances matching the given query. * @returns The number of deleted process instances. */ delete(processInstanceQuery: DeleteProcessInstanceQuery, deleteAllRelatedData: boolean, identity?: Identity): Promise; }