import { ConfigProps } from "../../../../pro/skuDetailModal/types";
export interface OpenNormalServiceCreatePayload {
    mode: 'create';
    productId: number;
    date: string;
    isEject: 0 | 1;
    productData?: any;
    skuDetailConfig?: ConfigProps;
    /**
     * @description 弹窗关闭回调（用于外部清理状态，例如清空当前选中商品）
     */
    onClose?: () => void;
    /**
     * 回传给 addServiceVariant 的 callback（保持现有签名）
     */
    callback: (e: any, extension_type: any, detail: any, notShowToast: boolean) => void;
}
export interface OpenNormalServiceEditPayload {
    mode: 'edit';
    cacheItem: any;
    productData?: any;
    skuDetailConfig?: ConfigProps;
    /**
     * @description 弹窗关闭回调（用于外部清理状态，例如清空当前选中商品）
     */
    onClose?: () => void;
    callback: (e: any, extension_type: any, detail: any, notShowToast: boolean) => void;
}
export declare type OpenNormalServicePayload = OpenNormalServiceCreatePayload | OpenNormalServiceEditPayload;
/**
 * 注册“打开普通服务编辑弹窗”的处理函数
 */
export declare function setOpenNormalServiceHandler(handler?: (payload: OpenNormalServicePayload) => void | Promise<void>): void;
/**
 * 获取当前注册的“打开普通服务编辑弹窗”处理函数
 */
export declare function getOpenNormalServiceHandler(): ((payload: OpenNormalServicePayload) => void | Promise<void>) | undefined;
