/**
 * 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 { FieldAssignRuleItem } from '../../../components/FieldAssignRulesEditor';
export interface LegacyValueExtractor {
    (model: any): any | undefined;
}
export interface LegacyClearer {
    (model: any): void;
}
export declare function hasPersistedAssignRulesValue(model: any, flowKey: string, stepKey: string): boolean;
export declare function createLegacyValueExtractor(flowKeys: string[]): LegacyValueExtractor;
export declare function createLegacyClearer(flowKeys: string[]): LegacyClearer;
export declare function collectLegacyDefaultValueRules(formModel: any, extractor: LegacyValueExtractor): FieldAssignRuleItem[];
export declare function mergeAssignRulesWithLegacyDefaults(existing: FieldAssignRuleItem[] | undefined, legacyDefaults: FieldAssignRuleItem[]): FieldAssignRuleItem[];
export declare function clearLegacyDefaultValues(formModel: any, extractor: LegacyValueExtractor, clearer: LegacyClearer): any[];
