import type { OrderCreateRq } from "./types.ts";
export interface CreateOrderParams {
    offerId: string;
    offerItemId: string;
    passengers: Array<{
        paxId: string;
        firstName: string;
        lastName: string;
        ptc: "ADT" | "CHD" | "INF";
        title?: string;
    }>;
    version?: "17.2" | "18.1" | "18.2" | "20.2" | "21.3";
    agencyId?: string;
    correlationId?: string;
}
/**
 * Build a valid OrderCreateRQ from high-level params.
 * Validates through the Zod schema before returning.
 */
export declare function orderCreate(params: CreateOrderParams): OrderCreateRq;
/**
 * NormalizedOrder — airline-agnostic order representation.
 */
export interface NormalizedOrder {
    orderId: string;
    status: string;
    bookingRef: string;
    totalPrice: number;
    currency: string;
    passengers: Array<{
        paxId: string;
        ptc: string;
    }>;
    segments: Array<{
        origin: string;
        destination: string;
        departureTime: string;
        arrivalTime: string;
        carrier: string;
        flightNumber: string;
    }>;
    orderItems: Array<{
        orderItemId: string;
        baseAmount: number;
        taxAmount: number;
        totalAmount: number;
        currency: string;
    }>;
}
/**
 * Parse a raw OrderViewRS into a normalized order.
 */
export declare function parseOrderView(raw: unknown): NormalizedOrder;
//# sourceMappingURL=order.d.ts.map