import type { ScopeCollection } from './user-scope'; declare type Data = { _links: Record; } | null | undefined; /** * Items and their children (options, attributes, discounts, applied taxes, custom fields) follow * `carts` while they belong to a cart and `transactions` once they belong to a transaction. * Returns `null` when the data says neither, so nothing gets locked by a guess. */ export declare function getItemScopeCollection(data: Data): ScopeCollection | null; declare type Cart = { currency_code?: string; template_set_uri?: string; } | null | undefined; /** * Item cards find their currency code on the transaction, on the cart or subscription transaction * template, or on its template set. Returns `false` when the scope can read none of the sources * that could still give a code, so the card renders amounts without a currency instead of loading * forever. Always `true` when the scope does not restrict store collections. */ export declare function canReadItemCurrency(scope: string | null | undefined, data: Data, cart: Cart): boolean; export {};