/**
 * 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 { Database } from '@nocobase/database';
import type { FlowSurfaceTemplateRow } from './template-service-utils';
export type TemplateTranslate = (key: string, options?: Record<string, any>) => string;
export declare function compileTemplateString(value: any, t?: TemplateTranslate): any;
export declare function resolveFlowTemplateDisplayRow(db: Database, row: FlowSurfaceTemplateRow, options?: {
    t?: TemplateTranslate;
    transaction?: any;
}): Promise<FlowSurfaceTemplateRow>;
export declare function resolveFlowTemplateDisplayRows(db: Database, rows: FlowSurfaceTemplateRow[], options?: {
    t?: TemplateTranslate;
    transaction?: any;
}): Promise<FlowSurfaceTemplateRow[]>;
