import { Signal } from "@preact/signals-core"; import { SwishApp } from "../swish"; export interface ItemContext { loading: boolean; productHandle?: string; productId?: string; variantId?: string; itemId?: string; } export interface ItemContextIds { productId?: string | number | null; variantId?: string | number | null; itemId?: string | null; } export declare const itemContextFromIds: (ids: ItemContextIds) => Signal; export declare const itemContextSignal: (swish: SwishApp) => (source: HTMLElement | Location) => Signal;