/**
 * 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 { FlowModel } from '@nocobase/flow-engine';
import type { HookAPI } from 'antd/es/modal/useModal';
type PopupBeforeClosePayload = {
    result?: any;
    force?: boolean;
    ignoredDirtyFormModelUids?: string[];
};
type PopupViewLike = {
    beforeClose?: (payload: PopupBeforeClosePayload) => Promise<boolean | void> | boolean | void;
};
export declare function bindPopupSubTableBeforeClose({ view, model, modal, t, }: {
    view: PopupViewLike;
    model?: FlowModel | null;
    modal: Pick<HookAPI, 'confirm'>;
    t: (key: string) => string;
}): () => void;
export {};
