/** * 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 { FlowSurfaceDescribeValues, FlowSurfaceExecutorContext, FlowSurfaceMutateOp, FlowSurfacePlanRequestValues, FlowSurfaceReadLocator, FlowSurfaceReadTarget, FlowSurfaceResolvedTarget } from '../types'; import { type FlowSurfacePlanOnlyActionName } from './action-specs'; import type { FlowSurfacePlanSurfaceContext } from './types'; type FlowSurfacePlanningRuntimeDeps = { normalizeGetTarget: (value: any) => FlowSurfaceReadLocator; resolveLocator: (target: FlowSurfaceReadLocator, options?: { transaction?: any; }) => Promise; loadResolvedSurfaceTree: (resolved: FlowSurfaceResolvedTarget, transaction?: any) => Promise; stripInternalSurfaceMetaFromNodeTree: (node: T) => T; buildReadTargetSummary: (target: FlowSurfaceReadLocator, resolved: FlowSurfaceResolvedTarget) => FlowSurfaceReadTarget; buildSurfaceContextFingerprint: (context: Pick) => string; buildSurfaceReadPayload: (target: FlowSurfaceReadLocator, resolved: FlowSurfaceResolvedTarget, node: any, options?: { transaction?: any; }) => Promise; dispatchPlanOnlyAction: (action: FlowSurfacePlanOnlyActionName, payload: Record, transaction?: any) => Promise; dispatchOp: (op: FlowSurfaceMutateOp, resolvedValues: Record, currentCtx: FlowSurfaceExecutorContext) => Promise; }; export declare function describeSurface(values: FlowSurfaceDescribeValues, deps: FlowSurfacePlanningRuntimeDeps, options?: { transaction?: any; }): Promise; type FlowSurfaceInternalPlanExecutionValues = Pick; export type FlowSurfaceInternalPlanExecutionResult = { results: Array>; }; export declare function executeInternalPlan(values: FlowSurfaceInternalPlanExecutionValues, deps: FlowSurfacePlanningRuntimeDeps, options?: { transaction?: any; }): Promise; export {};