import type { Ec } from '@coveo/relay-event-types'; import type { CommerceEngineState } from '../../../../app/commerce-engine/commerce-engine.js'; import type { CartState } from './cart-state.js'; /** * The purchase transaction. */ export interface Transaction { /** * The transaction's id */ id: string; /** * The total revenue from the transaction, including taxes, shipping, and discounts. */ revenue: number; } export declare const getECPurchasePayload: (transaction: Transaction, state: CommerceEngineState) => Ec.Purchase; export interface CartActionDetails extends Omit { } export declare const getECCartActionPayload: (cartActionDetails: CartActionDetails, state: CommerceEngineState) => Ec.CartAction; export declare const itemsSelector: ((state: CartState) => import("./cart-state.js").CartItemWithMetadata[]) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: Record, resultFuncArgs_1: string[]) => import("./cart-state.js").CartItemWithMetadata[]; memoizedResultFunc: ((resultFuncArgs_0: Record, resultFuncArgs_1: string[]) => import("./cart-state.js").CartItemWithMetadata[]) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => import("./cart-state.js").CartItemWithMetadata[]; dependencies: [(cartState: CartState) => Record, (cartState: CartState) => string[]]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; };