import { type MutableRefObject, type MouseEvent } from 'react';
import type { PisellReservationTableRow } from '../../types';
import type { BookingDetailActionKey } from './types';
export interface UseBookingDetailActionsOptions {
    raw: Record<string, unknown> | null;
    tableRow?: PisellReservationTableRow | null;
    reservationBiz?: string;
    associatedMenuListIds?: number[];
    onActionSuccess?: () => void | Promise<void>;
    appHelperUtils: {
        action?: (payload: unknown) => void;
        NativePage?: () => {
            open?: (opts: unknown) => void;
        };
        pisellos?: unknown;
    } | undefined;
}
export interface UseBookingDetailActionsResult {
    editBookingModalRef: MutableRefObject<{
        open?: (opts: unknown) => void;
    } | null>;
    isCancellingOrder: boolean;
    isCompletingBooking: boolean;
    handleResourceChangeConfirmed: () => void;
    handleActionCellClick: (bookingRaw: Record<string, unknown>, key: BookingDetailActionKey, e: MouseEvent) => Promise<void>;
}
/**
 * 预约详情弹窗内单条 booking 的操作栏事件：编辑、结账、换资源、开始/完成、取消等。
 */
export declare function useBookingDetailActions(options: UseBookingDetailActionsOptions): UseBookingDetailActionsResult;
