import type { OrderRequestPayload } from '../../types/api';
export interface TrackOrderItemInput {
    id?: string;
    productId?: string;
    product_id?: string;
    quantity?: number;
    price?: number;
}
export interface TrackOrderPayload {
    orderId: string;
    revenue: number;
    currency: string;
    items?: TrackOrderItemInput[];
    products?: TrackOrderItemInput[];
    pageLocation?: string;
    pageReferrer?: string;
}
export interface TrackOrderResult {
    success: boolean;
    error?: string;
}
export declare const trackOrder: (input: TrackOrderPayload) => Promise<TrackOrderResult>;
export declare const buildRequestPayload: (input: TrackOrderPayload) => OrderRequestPayload;
export type { TrackOrderPayload as OrderPayload, TrackOrderItemInput as OrderItemPayload };
