import React from 'react';
import type { SaleDetailContext } from '../types';
interface UseOrderNoteModalOptions {
    context: Pick<SaleDetailContext, 'sales'>;
    onAfterChange?: () => Promise<void> | void;
}
/**
 * 统一维护订单备注弹窗的打开、保存、删除和关闭逻辑。
 */
export declare function useOrderNoteModal({ context, onAfterChange, }: UseOrderNoteModalOptions): {
    openOrderNoteModal: () => void;
    closeOrderNoteModal: () => void;
    removeOrderNote: () => Promise<void>;
    orderNoteModal: React.JSX.Element | null;
};
export {};
