/** * 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 'ses'; import { type AnalyzedTemplate, type ResolvePathPolicy } from './variable-expression'; export type JSONValue = string | number | boolean | null | { [key: string]: JSONValue; } | JSONValue[]; /** * 解析 JSON 模板中形如 {{ ... }} 的占位符(服务端解析)。 * 无法解析或不受支持的表达式将原样保留。 */ export declare function resolveJsonTemplate(template: JSONValue, ctx: unknown): Promise; /** * 执行已分析的模板。授权、挂载和执行链路应复用同一个 analysis 与 policy。 */ export declare function resolveAnalyzedJsonTemplate(analysis: AnalyzedTemplate, ctx: unknown, policy: ResolvePathPolicy): Promise;