import type { ALaCarteOfferItem, AncillaryType, ServiceListRq } from "./types.ts";
export interface ServiceListParams {
    offerId: string;
    offerItemId: string;
    version?: "17.2" | "18.1" | "18.2" | "20.2" | "21.3";
    agencyId?: string;
}
/**
 * Build a valid ServiceListRQ from high-level params.
 */
export declare function serviceList(params: ServiceListParams): ServiceListRq;
export interface AncillaryBasketItem {
    offerItemId: string;
    name: string;
    type: AncillaryType;
    price: number;
    currency: string;
    serviceId: string;
    paxRefIds: string[];
}
export interface AncillaryBasket {
    items: AncillaryBasketItem[];
    total: number;
    currency: string;
}
/**
 * Build an ancillary basket from a ServiceListRS.
 * Groups selected items and calculates totals.
 */
export declare function ancillaryBasket(items: ALaCarteOfferItem[], selectedIds: string[]): AncillaryBasket;
/**
 * Parse a raw ServiceListRS into structured ancillary items.
 */
export declare function parseServiceListResponse(raw: unknown): ALaCarteOfferItem[];
//# sourceMappingURL=ancillary.d.ts.map