export type SwishQueryIdInput = string | number | null | undefined; export type SwishItemsQueryPrefixKey = readonly ["swish", "items"]; export type SwishItemsProductQueryKey = readonly [ ...SwishItemsQueryPrefixKey, string ]; export type SwishItemsVariantQueryKey = readonly [ ...SwishItemsProductQueryKey, string ]; export type SwishItemsQueryKey = SwishItemsProductQueryKey | SwishItemsVariantQueryKey; export declare function normalizeSwishQueryId(value: SwishQueryIdInput): string; export declare function swishItemsQueryKey(args: { productId: SwishQueryIdInput; variantId?: SwishQueryIdInput; }): SwishItemsQueryKey; /** Marks queries that hold volatile storefront product data. */ export declare const STOREFRONT_PRODUCT_QUERY_SEGMENT = "storefront-product"; export type SwishStorefrontProductQueryKey = readonly [ "swish", typeof STOREFRONT_PRODUCT_QUERY_SEGMENT, string ]; export declare function swishStorefrontProductQueryKey(nodeId: string): SwishStorefrontProductQueryKey; export type SwishResolvedProductQueryKey = readonly [ "swish", typeof STOREFRONT_PRODUCT_QUERY_SEGMENT, "resolved", string ]; /** * Key for `swish.state.product()`: the combined-listing-aware resolved shape, * distinct from the raw per-node row `loadProductBatched` keeps. Shares the * storefront-product segment so persistence excludes it too. */ export declare function swishResolvedProductQueryKey(nodeId: string): SwishResolvedProductQueryKey;