/**
 * 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 { FlowSurfaceApplyBlueprintDefaultCollection, FlowSurfaceApplyBlueprintDefaultFormBehaviorScene, FlowSurfaceApplyBlueprintDefaults, FlowSurfaceApplyBlueprintDefaultPopupName } from './public-types';
export declare const FLOW_SURFACE_APPLY_BLUEPRINT_POPUP_DEFAULTS_KEY = "__flowSurfaceApplyBlueprintPopupDefaults";
export type FlowSurfaceApplyBlueprintPopupDefaultActionType = 'addNew' | 'view' | 'edit';
export type FlowSurfaceApplyBlueprintPopupDefaultsMetadata = {
    collections?: FlowSurfaceApplyBlueprintDefaults['collections'];
    dataSources?: FlowSurfaceApplyBlueprintDefaults['dataSources'];
};
export declare function hasFlowSurfaceApplyBlueprintDefaults(defaults?: FlowSurfaceApplyBlueprintDefaults): boolean;
export declare function buildFlowSurfaceApplyBlueprintPopupDefaultsMetadata(defaults?: FlowSurfaceApplyBlueprintDefaults): FlowSurfaceApplyBlueprintPopupDefaultsMetadata | undefined;
export declare function attachFlowSurfaceApplyBlueprintPopupDefaults<T extends Record<string, any> | undefined>(popup: T, metadata: FlowSurfaceApplyBlueprintPopupDefaultsMetadata | undefined): T | Record<string, any> | undefined;
export declare function readFlowSurfaceApplyBlueprintPopupDefaultsMetadata(value: Record<string, any> | undefined): FlowSurfaceApplyBlueprintPopupDefaultsMetadata | undefined;
export declare function normalizeFlowSurfaceApplyBlueprintDataSourceKey(dataSourceKey?: string): string;
export declare function resolveFlowSurfaceApplyBlueprintDefaultCollection(input: {
    metadata?: FlowSurfaceApplyBlueprintPopupDefaultsMetadata;
    dataSourceKey?: string;
    collectionName?: string;
}): {
    collectionDefaults?: FlowSurfaceApplyBlueprintDefaultCollection;
    dataSourceKey: string;
    collectionName?: string;
    path?: string;
};
export declare function getFlowSurfaceApplyBlueprintDefaultCollection(metadata: FlowSurfaceApplyBlueprintPopupDefaultsMetadata | undefined, collectionName?: string, dataSourceKey?: string): FlowSurfaceApplyBlueprintDefaultCollection | undefined;
export declare function getFlowSurfaceApplyBlueprintDefaultFormBehavior(metadata: FlowSurfaceApplyBlueprintPopupDefaultsMetadata | undefined, collectionName?: string, actionType?: FlowSurfaceApplyBlueprintPopupDefaultActionType, dataSourceKey?: string): FlowSurfaceApplyBlueprintDefaultFormBehaviorScene | undefined;
export declare function getFlowSurfaceDefaultFieldGroupRelationTitleFieldOverride(fieldGroups: any[] | undefined, fieldPath: string): string;
export declare function resolveFlowSurfaceApplyBlueprintDefaultPopupMetadata(input: {
    metadata?: FlowSurfaceApplyBlueprintPopupDefaultsMetadata;
    actionType?: FlowSurfaceApplyBlueprintPopupDefaultActionType;
    dataSourceKey?: string;
    sourceCollectionName?: string;
    associationField?: string;
    targetCollectionName?: string;
}): FlowSurfaceApplyBlueprintDefaultPopupName | undefined;
