import type { BookingData, BookingFilters, BookingFilterResult, OrderBookingItem, OrderData, OrderProductLineItem } from '../types';
export type { BookingData, BookingFilters, BookingFilterResult } from '../types';
/**
 * 从整单 `order.products` 中归集属于指定 `booking` 的明细行。
 * - 第一遍：`product.schedule_event_id === booking.schedule_event_id`（保持 products 原顺序）
 * - 第二遍：按 `relation_items` 顺序追加 `resource_id` 与 `order_detail_id` 匹配且尚未收录的行
 */
export declare function productsForBooking(order: OrderData, booking: OrderBookingItem): OrderProductLineItem[];
export declare function flattenOrdersToBookings(orders: OrderData[]): BookingData[];
export declare function filterBookingsFromOrders(orders: OrderData[], filters: BookingFilters): BookingFilterResult;
export declare function sortBookings(result: BookingFilterResult, filters: BookingFilters): BookingFilterResult;
export declare function filterBookings(bookings: BookingData[], filters: BookingFilters): BookingFilterResult;
