/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import type FlowModelRepository from '../../repository'; export declare const APPROVAL_SURFACE_ROOT_USES: Set; export declare const APPROVAL_SINGLETON_ACTION_USES: Set; type ApprovalRuntimeConfigDeps = { db: { getRepository: (resourceName: string) => { find: (options: Record) => Promise; update: (options: Record) => Promise; }; }; locator: { findParentUid: (uid: string, transaction?: any) => Promise; }; repository: Pick; }; export declare class FlowSurfaceApprovalRuntimeConfigService { private readonly deps; constructor(deps: ApprovalRuntimeConfigDeps); private getRepositoryIfAvailable; private readModelField; private readApprovalConfig; private collectApprovalActionNodes; findApprovalSurfaceRootForNode(uid: string, transaction?: any): Promise; private findApprovalWorkflowBySurfaceRootUid; private findApprovalNodeBySurfaceRootUid; private patchApprovalRuntimeConfig; private getApprovalActionStepValue; private buildApprovalReturnRuntimeConfig; private buildApprovalReassignRuntimeConfig; private syncApprovalWorkflowRuntimeConfig; private syncApprovalNodeRuntimeConfig; syncApprovalRuntimeConfigForSurfaceRoot(root: any, transaction?: any): Promise; syncApprovalRuntimeConfigForNode(uid: string, transaction?: any): Promise; assertApprovalActionSingleton(parentUid: string, actionUse: string, transaction?: any): Promise; } export {};