import type { Cart, StatefulRemoteSubscribable } from '@shopify/retail-ui-extensions'; /** * A hook utilizing `useState` and the `useStatefulSubscribableCart` function to create a component state. * @returns this hook returns the latest Cart state which re-renders on change. */ export declare function useCartSubscription(): Cart; /** * A hook utilizing the `makeStatefulSubscribable` function to allow multiple Cart subscriptions. * @returns StatefulRemoteSubscribable object with a Cart in it. */ export declare function useStatefulSubscribableCart(): StatefulRemoteSubscribable; /** * A function destroying the subscriptions `useStatefulSubscribableCart` has. */ export declare function destroyStatefulSubscribableCart(): void; //# sourceMappingURL=cart-api.d.ts.map