Update to Shopify
Snapshot Sep 30, 2026 · 23:18 UTC · version 4.1.1
Collection source: not recorded for this historical snapshot. These snapshots do not have a confirmed matching collection source. Differences in file lists alone do not establish changes to the package.
Supporting file metadata differs
Newly listed paths: package.json. This compares saved file lists, not package contents; a different collection source can change the list.
Observed in package metadata. These changes alone do not establish a new customer-facing feature.
Supporting files
[{"relative_path":"assets/supported-versions-schema.json","size_in_bytes":6728},{"relative_path":"assets/types.archive.br","size_in_bytes":565199},{"relative_path":"scripts/search_docs.mjs","size_in_bytes":12794},{"relative_path":"script...
[{"relative_path":"assets/supported-versions-schema.json","size_in_bytes":6728},{"relative_path":"assets/types.archive.br","size_in_bytes":565199},{"relative_path":"package.json","size_in_bytes":123},{"relative_path":"scripts/search_docs...
Compare saved observations
Download comparison JSONFull technical diff · 1 changed fields
changed /included_files
[
{
"relative_path": "assets/supported-versions-schema.json",
"size_in_bytes": 6728
},
{
"relative_path": "assets/types.archive.br",
"size_in_bytes": 565199
},
{
"relative_path": "scripts/search_docs.mjs",
"size_in_bytes": 12794
},
{
"relative_path": "scripts/validate.mjs",
"size_in_bytes": 63775
}
][
{
"relative_path": "assets/supported-versions-schema.json",
"size_in_bytes": 6728
},
{
"relative_path": "assets/types.archive.br",
"size_in_bytes": 565199
},
{
"relative_path": "package.json",
"size_in_bytes": 123
},
{
"relative_path": "scripts/search_docs.mjs",
"size_in_bytes": 12794
},
{
"relative_path": "scripts/validate.mjs",
"size_in_bytes": 63775
}
]Full snapshot data
{
"name": "shopify-hydrogen",
"description": "Hydrogen storefront implementation cookbooks. Some of the available recipes are: B2B Commerce, Bundles, Combined Listings, Custom Cart Method, Dynamic Content with Metaobjects, Express Server, Google Tag Manager Integration, Infinite Scroll, Legacy Customer Account Flow, Markets, Partytown + Google Tag Manager, Subscriptions, Third-party API Queries and Caching. MANDATORY: Use this API for ANY Hydrogen storefront question - do NOT use Storefront GraphQL when 'Hydrogen' is mentioned.",
"included_files": [
{
"relative_path": "assets/supported-versions-schema.json",
"size_in_bytes": 6728
},
{
"relative_path": "assets/types.archive.br",
"size_in_bytes": 565199
},
{
"relative_path": "package.json",
"size_in_bytes": 123
},
{
"relative_path": "scripts/search_docs.mjs",
"size_in_bytes": 12794
},
{
"relative_path": "scripts/validate.mjs",
"size_in_bytes": 63775
}
],
"skill_md_contents": "---\nname: shopify-hydrogen\ndescription: \"Hydrogen storefront implementation cookbooks. Some of the available recipes are: B2B Commerce, Bundles, Combined Listings, Custom Cart Method, Dynamic Content with Metaobjects, Express Server, Google Tag Manager Integration, Infinite Scroll, Legacy Customer Account Flow, Markets, Partytown + Google Tag Manager, Subscriptions, Third-party API Queries and Caching. MANDATORY: Use this API for ANY Hydrogen storefront question - do NOT use Storefront GraphQL when 'Hydrogen' is mentioned.\"\ncompatibility: Requires Node.js\nmetadata:\n author: Shopify\n version: \"1.15.0\"\n---\n\n## Required Tool Calls (do not skip)\n\nEach bundled `.mjs` helper supports `-h` and `--help` for complete usage and option details.\n\nYou have a `bash` tool. Every response must use it — in this order:\n\n1. Call `bash` with `scripts/search_docs.mjs \"<query>\" --version API_VERSION` — search before writing code\n2. Write the code using the search results\n3. Call `bash` with the following — validate before returning:\n ```\n scripts/validate.mjs --code '...' [--version <api-version>]\n ```\n > **Version:** If you know the developer's API version, pass `--version` with a supported value such as `2026-04` or `2026-01`. For API versions configured in a project, use the project's API configuration; omit to get the latest stable version. Defaults to the latest stable version when omitted.\n4. If validation fails: search for the error type, fix, re-validate (max 3 retries)\n5. Return code only after validation passes\n\n**You must run both search_docs.mjs and validate.mjs in every response. Do not return code to the user without completing step 3.**\n\n\n---\n\nYou are an assistant that helps Shopify developers write UI Framework code to interact with the latest Shopify hydrogen UI Framework version.\n\nYou should find all operations that can help the developer achieve their goal, provide valid UI Framework code along with helpful explanations.\nDO NOT USE HYDROGEN REACT, ONLY USE HYDROGEN.\n\nReferences:\n\n- /docs/storefronts/headless/hydrogen/cookbook\n\n## mock.shop: a store to build against before you have one\n\n[mock.shop](https://mock.shop) is a public, auth-free Storefront GraphQL API backed by mock reference stores. Use mock.shop when the user has no store, no Storefront API access token, or wants realistic data to build against. Find the setup guide at [How to use mock.shop](https://shopify.dev/docs/storefronts/headless/mock-shop).\n\n- `https://mock.shop/llms.txt` lists every store with a one-line summary and its API URL. Each store is a separate catalog on its own host, and `https://<store>.mock.shop/llms.txt` describes that store's catalog.\n- Send Storefront API queries as `POST https://<store>.mock.shop/api` with a JSON body (`{\"query\": \"...\"}`) and `Content-Type: application/json`. No access token or other headers. The bare apex `https://mock.shop/api` serves the default store.\n- Pick the store whose categories match what the user is building. The default store is apparel basics.\n- Scaffold a Hydrogen storefront against it with `npm create @shopify/hydrogen@latest -- --mock-shop`. The `--quickstart` flag implies `--mock-shop`.\n- To move the project to a real Shopify store, use `npx shopify hydrogen link` followed by `npx shopify hydrogen env pull`.\n- Queries written against mock.shop run unchanged against a real store.\n- Checkout is mocked: no payment is taken and no order is placed.\n- mock.shop doesn't support the Customer Account API, and its products, prices, and inventory are fictional.\n\n## Hydrogen Cookbook - Ready-to-Use Recipes\n\nHydrogen has a comprehensive cookbook with step-by-step recipes for common features.\nSearch the developer documentation at /docs/storefronts/headless/hydrogen/cookbook for the cookbook index, then use the paths to fetch relevant recipes.\nPrioritize utilizing cookbook recipes whenever applicable to the user's request.\n\n## 🚨 CRITICAL ERROR PREVENTION 🚨\n\nNEVER use api:\"storefront\" for these components - they are REACT COMPONENTS:\n\n- Image, Video, ExternalVideo, MediaFile, Money - NOT GraphQL types!\n- These RENDER data, they don't FETCH data\n- They are from '@shopify/hydrogen' package\n\n## MANDATORY REQUIREMENTS:\n\n1. **ALWAYS** use api:\"hydrogen\" for ALL components below\n2. **ALWAYS** generate complete JSX code examples\n3. If asked about \"Media\" or \"MediaFile\" - use api:\"hydrogen\" NOT api:\"storefront\"!\n\n## REMEMBER:\n\n- These components CONSUME data from Storefront API\n- They are NOT the data types themselves\n- They are React UI components that render HTML\n\n## Hydrogen Component Types\n\nHere are the TypeScript definitions for all available Hydrogen components and utilities:\n\n```typescript\n// --- @shopify/hydrogen/dist/production/index.d.ts ---\nimport * as react from 'react';\nimport { ReactNode, ComponentType, ScriptHTMLAttributes, FC, ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';\nimport { BuyerInput, CountryCode as CountryCode$1, LanguageCode as LanguageCode$1, VisitorConsent as VisitorConsent$1, CartInput, CartLineInput, CartLineUpdateInput, CartBuyerIdentityInput, CartSelectedDeliveryOptionInput, AttributeInput, Scalars, CartSelectableAddressInput, CartSelectableAddressUpdateInput, Cart, CartMetafieldsSetInput, CartUserError, MetafieldsSetUserError, MetafieldDeleteUserError, CartWarning, Product, ProductVariant, CartLine, ComponentizableCartLine, CurrencyCode, PageInfo, Maybe, ProductOptionValue, ProductOption, ProductVariantConnection, SelectedOptionInput } from '@shopify/hydrogen-react/storefront-api-types';\nimport { createStorefrontClient as createStorefrontClient$1, StorefrontClientProps, RichText as RichText$1, ShopPayButton as ShopPayButton$1 } from '@shopify/hydrogen-react';\nexport { AnalyticsEventName, AnalyticsPageType, ClientBrowserParameters, ExternalVideo, IMAGE_FRAGMENT, Image, MappedProductOptions, MediaFile, ModelViewer, Money, ParsedMetafields, ShopifyAnalytics as SendShopifyAnalyticsEvent, ShopifyAddToCart, ShopifyAddToCartPayload, ShopifyAnalyticsPayload, ShopifyAnalyticsProduct, ShopifyCookies, ShopifyPageView, ShopifyPageViewPayload, ShopifySalesChannel, StorefrontApiResponse, StorefrontApiResponseError, StorefrontApiResponseOk, StorefrontApiResponseOkPartial, StorefrontApiResponsePartial, Video, customerAccountApiCustomScalars, decodeEncodedVariant, flattenConnection, getAdjacentAndFirstAvailableVariants, getClientBrowserParameters, getProductOptions, getShopifyCookies, getTrackingValues, isOptionValueCombinationInEncodedVariant, mapSelectedProductOptionToObject, parseGid, parseMetafield, sendShopifyAnalytics, storefrontApiCustomScalars, useLoadScript, useMoney, useSelectedOptionInUrlParam, useShopifyCookies } from '@shopify/hydrogen-react';\nimport { LanguageCode, CountryCode } from '@shopify/hydrogen-react/customer-account-api-types';\nimport { ExecutionArgs } from 'graphql';\nimport * as react_router from 'react-router';\nimport { SessionData, FlashSessionData, Session, SessionStorage, RouterContextProvider, FetcherWithComponents, ServerBuild, LinkProps, LoaderFunctionArgs, MetaFunction, LoaderFunction, Params, Location } from 'react-router';\nimport * as react_jsx_runtime from 'react/jsx-runtime';\nimport { PartialDeep } from 'type-fest';\nimport { RouteConfigEntry } from '@react-router/dev/routes';\nimport { Preset } from '@react-router/dev/config';\nimport { WithContext, Thing } from 'schema-dts';\n\n/**\n * Override options for a cache strategy.\n */\ninterface AllCacheOptions {\n /**\n * The caching mode, generally `public`, `private`, or `no-store`.\n */\n mode?: string;\n /**\n * The maximum amount of time in seconds that a resource will be considered fresh. See `max-age` in the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#:~:text=Response%20Directives-,max%2Dage,-The%20max%2Dage).\n */\n maxAge?: number;\n /**\n * Indicate that the cache should serve the stale response in the background while revalidating the cache. See `stale-while-revalidate` in the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#stale-while-revalidate).\n */\n staleWhileRevalidate?: number;\n /**\n * Similar to `maxAge` but specific to shared caches. See `s-maxage` in the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#s-maxage).\n */\n sMaxAge?: number;\n /**\n * Indicate that the cache should serve the stale response if an error occurs while revalidating the cache. See `stale-if-error` in the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#stale-if-error).\n */\n staleIfError?: number;\n}\n/**\n * Use the `CachingStrategy` to define a custom caching mechanism for your data. Or use one of the pre-defined caching strategies: CacheNone, CacheShort, CacheLong.\n */\ntype CachingStrategy = AllCacheOptions;\ntype NoStoreStrategy = {\n mode: string;\n};\ndeclare function generateCacheControlHeader(cacheOptions: CachingStrategy): string;\n/**\n *\n * @public\n */\ndeclare function CacheNone(): NoStoreStrategy;\n/**\n *\n * @public\n */\ndeclare function CacheShort(overrideOptions?: CachingStrategy): AllCacheOptions;\n/**\n *\n * @public\n */\ndeclare function CacheLong(overrideOptions?: CachingStrategy): AllCacheOptions;\n/**\n *\n * @public\n */\ndeclare function CacheCustom(overrideOptions: CachingStrategy): AllCacheOptions;\n\n/**\nConvert a union type to an intersection type using [distributive conditional types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).\n\nInspired by [this Stack Overflow answer](https://stackoverflow.com/a/50375286/2172153).\n\n@example\n```\n\nimport type {UnionToIntersection} from 'type-fest';\n\ntype Union = {the(): void} | {great(arg: string): void} | {escape: boolean};\n\ntype Intersection = UnionToIntersection<Union>;\n//=> {the(): void; great(arg: string): void; escape: boolean};\n\n```\n\nA more applicable example which could make its way into your library code follows.\n\n@example\n```\n\nimport type {UnionToIntersection} from 'type-fest';\n\nclass CommandOne {\ncommands: {\na1: () => undefined,\nb1: () => undefined,\n}\n}\n\nclass CommandTwo {\ncommands: {\na2: (argA: string) => undefined,\nb2: (argB: string) => undefined,\n}\n}\n\nconst union = [new CommandOne(), new CommandTwo()].map(instance => instance.commands);\ntype Union = typeof union;\n//=> {a1(): void; b1(): void} | {a2(argA: string): void; b2(argB: string): void}\n\ntype Intersection = UnionToIntersection<Union>;\n//=> {a1(): void; b1(): void; a2(argA: string): void; b2(argB: string): void}\n\n```\n\n@category Type\n*/\ntype UnionToIntersection<Union> = (\n// `extends unknown` is always going to be the case and is used to convert the\n// `Union` into a [distributive conditional\n// type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).\nUnion extends unknown ? (distributedUnion: Union) => void : never) extends ((mergedIntersection: infer Intersection) => void) ? Intersection & Union : never;\n/**\nCreate a union of all keys from a given type, even those exclusive to specific union members.\n\nUnlike the native `keyof` keyword, which returns keys present in **all** union members, this type returns keys from **any** member.\n\n@link https://stackoverflow.com/a/49402091\n\n@example\n```\n\nimport type {KeysOfUnion} from 'type-fest';\n\ntype A = {\ncommon: string;\na: number;\n};\n\ntype B = {\ncommon: string;\nb: string;\n};\n\ntype C = {\ncommon: string;\nc: boolean;\n};\n\ntype Union = A | B | C;\n\ntype CommonKeys = keyof Union;\n//=> 'common'\n\ntype AllKeys = KeysOfUnion<Union>;\n//=> 'common' | 'a' | 'b' | 'c'\n\n```\n\n@category Object\n*/\ntype KeysOfUnion<ObjectType> =\n// Hack to fix https://github.com/sindresorhus/type-fest/issues/1008\nkeyof UnionToIntersection<ObjectType extends unknown ? Record<keyof ObjectType, never> : never>;\n/**\nExtract all optional keys from the given type.\n\nThis is useful when you want to create a new type that contains different type values for the optional keys only.\n\n@example\n```\n\nimport type {OptionalKeysOf, Except} from 'type-fest';\n\ninterface User {\nname: string;\nsurname: string;\n\n luckyNumber?: number;\n\n}\n\nconst REMOVE_FIELD = Symbol('remove field symbol');\ntype UpdateOperation<Entity extends object> = Except<Partial<Entity>, OptionalKeysOf<Entity>> & {\n[Key in OptionalKeysOf<Entity>]?: Entity[Key] | typeof REMOVE_FIELD;\n};\n\nconst update1: UpdateOperation<User> = {\nname: 'Alice'\n};\n\nconst update2: UpdateOperation<User> = {\nname: 'Bob',\nluckyNumber: REMOVE_FIELD\n};\n\n```\n\n@category Utilities\n*/\ntype OptionalKeysOf<BaseType extends object> = BaseType extends unknown // For distributing `BaseType`\n ? (keyof {\n\t[Key in keyof BaseType as BaseType extends Record<Key, BaseType[Key]> ? never : Key]: never;\n}) & (keyof BaseType) // Intersect with `keyof BaseType` to ensure result of `OptionalKeysOf<BaseType>` is always assignable to `keyof BaseType`\n : never; // Should never happen\n/**\nExtract all required keys from the given type.\n\nThis is useful when you want to create a new type that contains different type values for the required keys only or use the list of keys for validation purposes, etc...\n\n@example\n```\n\nimport type {RequiredKeysOf} from 'type-fest';\n\ndeclare function createValidation<Entity extends object, Key extends RequiredKeysOf<Entity> = RequiredKeysOf<Entity>>(field: Key, validator: (value: Entity[Key]) => boolean): ValidatorFn;\n\ninterface User {\nname: string;\nsurname: string;\n\n luckyNumber?: number;\n\n}\n\nconst validator1 = createValidation<User>('name', value => value.length < 25);\nconst validator2 = createValidation<User>('surname', value => value.length < 25);\n\n```\n\n@category Utilities\n*/\ntype RequiredKeysOf<BaseType extends object> = BaseType extends unknown // For distributing `BaseType`\n ? Exclude<keyof BaseType, OptionalKeysOf<BaseType>> : never; // Should never happen\n/**\nReturns a boolean for whether the given type is `never`.\n\n@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919\n@link https://stackoverflow.com/a/53984913/10292952\n@link https://www.zhenghao.io/posts/ts-never\n\nUseful in type utilities, such as checking if something does not occur.\n\n@example\n```\n\nimport type {IsNever, And} from 'type-fest';\n\n// https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts\ntype AreStringsEqual<A extends string, B extends string> =\nAnd<\nIsNever<Exclude<A, B>> extends true ? true : false,\nIsNever<Exclude<B, A>> extends true ? true : false >;\n\ntype EndIfEqual<I extends string, O extends string> =\nAreStringsEqual<I, O> extends true\n? never\n: void;\n\nfunction endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {\nif (input === output) {\nprocess.exit(0);\n}\n}\n\nendIfEqual('abc', 'abc');\n//=> never\n\nendIfEqual('abc', '123');\n//=> void\n\n```\n\n@category Type Guard\n@category Utilities\n*/\ntype IsNever<T> = [\n\tT\n] extends [\n\tnever\n] ? true : false;\n/**\nAn if-else-like type that resolves depending on whether the given type is `never`.\n\n@see {@link IsNever}\n\n@example\n```\n\nimport type {IfNever} from 'type-fest';\n\ntype ShouldBeTrue = IfNever<never>;\n//=> true\n\ntype ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;\n//=> 'bar'\n\n```\n\n@category Type Guard\n@category Utilities\n*/\ntype IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (IsNever<T> extends true ? TypeIfNever : TypeIfNotNever);\ntype NoInfer$1<T> = T extends infer U ? U : never;\n/**\nReturns a boolean for whether the given type is `any`.\n\n@link https://stackoverflow.com/a/49928360/1490091\n\nUseful in type utilities, such as disallowing `any`s to be passed to a function.\n\n@example\n```\n\nimport type {IsAny} from 'type-fest';\n\nconst typedObject = {a: 1, b: 2} as const;\nconst anyObject: any = {a: 1, b: 2};\n\nfunction get<O extends (IsAny<O> extends true ? {} : Record<string, number>), K extends keyof O = keyof O>(obj: O, key: K) {\nreturn obj[key];\n}\n\nconst typedA = get(typedObject, 'a');\n//=> 1\n\nconst anyA = get(anyObject, 'a');\n//=> any\n\n```\n\n@category Type Guard\n@category Utilities\n*/\ntype IsAny<T> = 0 extends 1 & NoInfer$1<T> ? true : false;\n/**\nReturns a boolean for whether the two given types are equal.\n\n@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650\n@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796\n\nUse-cases:\n- If you want to make a conditional branch based on the result of a comparison of two types.\n\n@example\n```\n\nimport type {IsEqual} from 'type-fest';\n\n// This type returns a boolean for whether the given array includes the given item.\n// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.\ntype Includes<Value extends readonly any[], Item> =\nValue extends readonly [Value[0], ...infer rest]\n? IsEqual<Value[0], Item> extends true\n? true\n: Includes<rest, Item>\n: false;\n\n```\n\n@category Type Guard\n@category Utilities\n*/\ntype IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;\n/**\nUseful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.\n\n@example\n```\n\nimport type {Simplify} from 'type-fest';\n\ntype PositionProps = {\ntop: number;\nleft: number;\n};\n\ntype SizeProps = {\nwidth: number;\nheight: number;\n};\n\n// In your editor, hovering over `Props` will show a flattened object with all the properties.\ntype Props = Simplify<PositionProps & SizeProps>;\n\n```\n\nSometimes it is desired to pass a value as a function argument that has a different type. At first inspection it may seem assignable, and then you discover it is not because the `value`'s type definition was defined as an interface. In the following example, `fn` requires an argument of type `Record<string, unknown>`. If the value is defined as a literal, then it is assignable. And if the `value` is defined as type using the `Simplify` utility the value is assignable. But if the `value` is defined as an interface, it is not assignable because the interface is not sealed and elsewhere a non-string property could be added to the interface.\n\nIf the type definition must be an interface (perhaps it was defined in a third-party npm package), then the `value` can be defined as `const value: Simplify<SomeInterface> = ...`. Then `value` will be assignable to the `fn` argument. Or the `value` can be cast as `Simplify<SomeInterface>` if you can't re-declare the `value`.\n\n@example\n```\n\nimport type {Simplify} from 'type-fest';\n\ninterface SomeInterface {\nfoo: number;\nbar?: string;\nbaz: number | undefined;\n}\n\ntype SomeType = {\nfoo: number;\nbar?: string;\nbaz: number | undefined;\n};\n\nconst literal = {foo: 123, bar: 'hello', baz: 456};\nconst someType: SomeType = literal;\nconst someInterface: SomeInterface = literal;\n\nfunction fn(object: Record<string, unknown>): void {}\n\nfn(literal); // Good: literal object type is sealed\nfn(someType); // Good: type is sealed\nfn(someInterface); // Error: Index signature for type 'string' is missing in type 'someInterface'. Because `interface` can be re-opened\nfn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface` into a `type`\n\n```\n\n@link https://github.com/microsoft/TypeScript/issues/15300\n@see SimplifyDeep\n@category Object\n*/\ntype Simplify<T> = {\n\t[KeyType in keyof T]: T[KeyType];\n} & {};\n/**\nOmit any index signatures from the given object type, leaving only explicitly defined properties.\n\nThis is the counterpart of `PickIndexSignature`.\n\nUse-cases:\n- Remove overly permissive signatures from third-party types.\n\nThis type was taken from this [StackOverflow answer](https://stackoverflow.com/a/68261113/420747).\n\nIt relies on the fact that an empty object (`{}`) is assignable to an object with just an index signature, like `Record<string, unknown>`, but not to an object with explicitly defined keys, like `Record<'foo' | 'bar', unknown>`.\n\n(The actual value type, `unknown`, is irrelevant and could be any type. Only the key type matters.)\n\n```\n\nconst indexed: Record<string, unknown> = {}; // Allowed\n\nconst keyed: Record<'foo', unknown> = {}; // Error\n// => TS2739: Type '{}' is missing the following properties from type 'Record<\"foo\" | \"bar\", unknown>': foo, bar\n\n```\n\nInstead of causing a type error like the above, you can also use a [conditional type](https://www.typescriptlang.org/docs/handbook/2/conditional-types.html) to test whether a type is assignable to another:\n\n```\n\ntype Indexed = {} extends Record<string, unknown>\n? '✅ `{}` is assignable to `Record<string, unknown>`'\n: '❌ `{}` is NOT assignable to `Record<string, unknown>`';\n// => '✅ `{}` is assignable to `Record<string, unknown>`'\n\ntype Keyed = {} extends Record<'foo' | 'bar', unknown>\n? \"✅ `{}` is assignable to `Record<'foo' | 'bar', unknown>`\"\n: \"❌ `{}` is NOT assignable to `Record<'foo' | 'bar', unknown>`\";\n// => \"❌ `{}` is NOT assignable to `Record<'foo' | 'bar', unknown>`\"\n\n```\n\nUsing a [mapped type](https://www.typescriptlang.org/docs/handbook/2/mapped-types.html#further-exploration), you can then check for each `KeyType` of `ObjectType`...\n\n```\n\nimport type {OmitIndexSignature} from 'type-fest';\n\ntype OmitIndexSignature<ObjectType> = {\n[KeyType in keyof ObjectType // Map each key of `ObjectType`...\n]: ObjectType[KeyType]; // ...to its original value, i.e. `OmitIndexSignature<Foo> == Foo`.\n};\n\n```\n\n...whether an empty object (`{}`) would be assignable to an object with that `KeyType` (`Record<KeyType, unknown>`)...\n\n```\n\nimport type {OmitIndexSignature} from 'type-fest';\n\ntype OmitIndexSignature<ObjectType> = {\n[KeyType in keyof ObjectType\n// Is `{}` assignable to `Record<KeyType, unknown>`?\nas {} extends Record<KeyType, unknown>\n? ... // ✅ `{}` is assignable to `Record<KeyType, unknown>`\n: ... // ❌ `{}` is NOT assignable to `Record<KeyType, unknown>`\n]: ObjectType[KeyType];\n};\n\n```\n\nIf `{}` is assignable, it means that `KeyType` is an index signature and we want to remove it. If it is not assignable, `KeyType` is a \"real\" key and we want to keep it.\n\n@example\n```\n\nimport type {OmitIndexSignature} from 'type-fest';\n\ninterface Example {\n// These index signatures will be removed.\n[x: string]: any\n[x: number]: any\n[x: symbol]: any\n[x: `head-${string}`]: string\n[x: `${string}-tail`]: string\n[x: `head-${string}-tail`]: string\n[x: `${bigint}`]: string\n[x: `embedded-${number}`]: string\n\n // These explicitly defined keys will remain.\n foo: 'bar';\n qux?: 'baz';\n\n}\n\ntype ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;\n// => { foo: 'bar'; qux?: 'baz' | undefined; }\n\n```\n\n@see PickIndexSignature\n@category Object\n*/\ntype OmitIndexSignature<ObjectType> = {\n\t[KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType];\n};\n/**\nPick only index signatures from the given object type, leaving out all explicitly defined properties.\n\nThis is the counterpart of `OmitIndexSignature`.\n\n@example\n```\n\nimport type {PickIndexSignature} from 'type-fest';\n\ndeclare const symbolKey: unique symbol;\n\ntype Example = {\n// These index signatures will remain.\n[x: string]: unknown;\n[x: number]: unknown;\n[x: symbol]: unknown;\n[x: `head-${string}`]: string;\n[x: `${string}-tail`]: string;\n[x: `head-${string}-tail`]: string;\n[x: `${bigint}`]: string;\n[x: `embedded-${number}`]: string;\n\n // These explicitly defined keys will be removed.\n ['kebab-case-key']: string;\n [symbolKey]: string;\n foo: 'bar';\n qux?: 'baz';\n\n};\n\ntype ExampleIndexSignature = PickIndexSignature<Example>;\n// {\n// [x: string]: unknown;\n// [x: number]: unknown;\n// [x: symbol]: unknown;\n// [x: `head-${string}`]: string;\n// [x: `${string}-tail`]: string;\n// [x: `head-${string}-tail`]: string;\n// [x: `${bigint}`]: string;\n// [x: `embedded-${number}`]: string;\n// }\n\n```\n\n@see OmitIndexSignature\n@category Object\n*/\ntype PickIndexSignature<ObjectType> = {\n\t[KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType];\n};\n// Merges two objects without worrying about index signatures.\ntype SimpleMerge<Destination, Source> = {\n\t[Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key];\n} & Source;\n/**\nMerge two types into a new type. Keys of the second type overrides keys of the first type.\n\n@example\n```\n\nimport type {Merge} from 'type-fest';\n\ninterface Foo {\n[x: string]: unknown;\n[x: number]: unknown;\nfoo: string;\nbar: symbol;\n}\n\ntype Bar = {\n[x: number]: number;\n[x: symbol]: unknown;\nbar: Date;\nbaz: boolean;\n};\n\nexport type FooBar = Merge<Foo, Bar>;\n// => {\n// [x: string]: unknown;\n// [x: number]: number;\n// [x: symbol]: unknown;\n// foo: string;\n// bar: Date;\n// baz: boolean;\n// }\n\n```\n\n@category Object\n*/\ntype Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;\n/**\nAn if-else-like type that resolves depending on whether the given type is `any`.\n\n@see {@link IsAny}\n\n@example\n```\n\nimport type {IfAny} from 'type-fest';\n\ntype ShouldBeTrue = IfAny<any>;\n//=> true\n\ntype ShouldBeBar = IfAny<'not any', 'foo', 'bar'>;\n//=> 'bar'\n\n```\n\n@category Type Guard\n@category Utilities\n*/\ntype IfAny<T, TypeIfAny = true, TypeIfNotAny = false> = (IsAny<T> extends true ? TypeIfAny : TypeIfNotAny);\n/**\nWorks similar to the built-in `Pick` utility type, except for the following differences:\n- Distributes over union types and allows picking keys from any member of the union type.\n- Primitives types are returned as-is.\n- Picks all keys if `Keys` is `any`.\n- Doesn't pick `number` from a `string` index signature.\n\n@example\n```\n\ntype ImageUpload = {\nurl: string;\nsize: number;\nthumbnailUrl: string;\n};\n\ntype VideoUpload = {\nurl: string;\nduration: number;\nencodingFormat: string;\n};\n\n// Distributes over union types and allows picking keys from any member of the union type\ntype MediaDisplay = HomomorphicPick<ImageUpload | VideoUpload, \"url\" | \"size\" | \"duration\">;\n//=> {url: string; size: number} | {url: string; duration: number}\n\n// Primitive types are returned as-is\ntype Primitive = HomomorphicPick<string | number, 'toUpperCase' | 'toString'>;\n//=> string | number\n\n// Picks all keys if `Keys` is `any`\ntype Any = HomomorphicPick<{a: 1; b: 2} | {c: 3}, any>;\n//=> {a: 1; b: 2} | {c: 3}\n\n// Doesn't pick `number` from a `string` index signature\ntype IndexSignature = HomomorphicPick<{[k: string]: unknown}, number>;\n//=> {}\n\\*/\ntype HomomorphicPick<T, Keys extends KeysOfUnion<T>> = {\n[P in keyof T as Extract<P, Keys>]: T[P];\n};\n/\\*\\*\nMerges user specified options with default options.\n\n@example\n\n```\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10; leavesOnly: false};\ntype SpecifiedOptions = {leavesOnly: true};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n//=> {maxRecursionDepth: 10; leavesOnly: true}\n```\n\n@example\n\n```\n// Complains if default values are not provided for optional options\n\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10};\ntype SpecifiedOptions = {};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n// ~~~~~~~~~~~~~~~~~~~\n// Property 'leavesOnly' is missing in type 'DefaultPathsOptions' but required in type '{ maxRecursionDepth: number; leavesOnly: boolean; }'.\n```\n\n@example\n\n```\n// Complains if an option's default type does not conform to the expected type\n\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10; leavesOnly: 'no'};\ntype SpecifiedOptions = {};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n// ~~~~~~~~~~~~~~~~~~~\n// Types of property 'leavesOnly' are incompatible. Type 'string' is not assignable to type 'boolean'.\n```\n\n@example\n\n```\n// Complains if an option's specified type does not conform to the expected type\n\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10; leavesOnly: false};\ntype SpecifiedOptions = {leavesOnly: 'yes'};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n// ~~~~~~~~~~~~~~~~\n// Types of property 'leavesOnly' are incompatible. Type 'string' is not assignable to type 'boolean'.\n```\n\n\\*/\ntype ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>, SpecifiedOptions extends Options> = IfAny<SpecifiedOptions, Defaults, IfNever<SpecifiedOptions, Defaults, Simplify<Merge<Defaults, {\n[Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options> ? Extract<SpecifiedOptions[Key], undefined> extends never ? Key : never : Key]: SpecifiedOptions[Key];\n}> & Required<Options>> // `& Required<Options>` ensures that `ApplyDefaultOptions<SomeOption, ...>` is always assignable to `Required<SomeOption>`\n\n> > ;\n> > /\\*\\*\n> > Filter out keys from an object.\n\nReturns `never` if `Exclude` is strictly equal to `Key`.\nReturns `never` if `Key` extends `Exclude`.\nReturns `Key` otherwise.\n\n@example\n\n```\ntype Filtered = Filter<'foo', 'foo'>;\n//=> never\n```\n\n@example\n\n```\ntype Filtered = Filter<'bar', string>;\n//=> never\n```\n\n@example\n\n```\ntype Filtered = Filter<'bar', 'foo'>;\n//=> 'bar'\n```\n\n@see {Except}\n\\*/\ntype Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);\ntype ExceptOptions = {\n/\\*\\*\nDisallow assigning non-specified properties.\n\n Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.\n\n @default false\n */\n requireExactProps?: boolean;\n\n};\ntype DefaultExceptOptions = {\nrequireExactProps: false;\n};\n/\\*\\*\nCreate a type from an object type without certain keys.\n\nWe recommend setting the `requireExactProps` option to `true`.\n\nThis type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.\n\nThis type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).\n\n@example\n\n```\nimport type {Except} from 'type-fest';\n\ntype Foo = {\n\ta: number;\n\tb: string;\n};\n\ntype FooWithoutA = Except<Foo, 'a'>;\n//=> {b: string}\n\nconst fooWithoutA: FooWithoutA = {a: 1, b: '2'};\n//=> errors: 'a' does not exist in type '{ b: string; }'\n\ntype FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;\n//=> {a: number} & Partial<Record<\"b\", never>>\n\nconst fooWithoutB: FooWithoutB = {a: 1, b: '2'};\n//=> errors at 'b': Type 'string' is not assignable to type 'undefined'.\n\n// The `Omit` utility type doesn't work when omitting specific keys from objects containing index signatures.\n\n// Consider the following example:\n\ntype UserData = {\n\t[metadata: string]: string;\n\temail: string;\n\tname: string;\n\trole: 'admin' | 'user';\n};\n\n// `Omit` clearly doesn't behave as expected in this case:\ntype PostPayload = Omit<UserData, 'email'>;\n//=> type PostPayload = { [x: string]: string; [x: number]: string; }\n\n// In situations like this, `Except` works better.\n// It simply removes the `email` key while preserving all the other keys.\ntype PostPayload = Except<UserData, 'email'>;\n//=> type PostPayload = { [x: string]: string; name: string; role: 'admin' | 'user'; }\n```\n\n@category Object\n\\*/\ntype Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> = \\_Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;\ntype \\_Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = {\n[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];\n} & (Options[\"requireExactProps\"] extends true ? Partial<Record<KeysType, never>> : {});\n/\\*\\*\nCreate a type that makes the given keys optional. The remaining keys are kept as is. The sister of the `SetRequired` type.\n\nUse-case: You want to define a single model where the only thing that changes is whether or not some of the keys are optional.\n\n@example\n\n```\nimport type {SetOptional} from 'type-fest';\n\ntype Foo = {\n\ta: number;\n\tb?: string;\n\tc: boolean;\n}\n\ntype SomeOptional = SetOptional<Foo, 'b' | 'c'>;\n// type SomeOptional = {\n// \ta: number;\n// \tb?: string; // Was already optional and still is.\n// \tc?: boolean; // Is now optional.\n// }\n```\n\n@category Object\n\\*/\ntype SetOptional<BaseType, Keys extends keyof BaseType> = BaseType extends unknown // To distribute `BaseType` when it's a union type.\n? Simplify<\n// Pick just the keys that are readonly from the base type.\nExcept<BaseType, Keys> &\n// Pick the keys that should be mutable from the base type and make them mutable.\nPartial<HomomorphicPick<BaseType, Keys>>> : never;\n/\\*\\*\n\n- This file has utilities to create GraphQL clients\n- that consume the types generated by the preset.\n \\*/\n /\\*\\*\n- A generic type for `variables` in GraphQL clients\n \\*/\n type GenericVariables = ExecutionArgs[\"variableValues\"];\n /\\*\\*\n- Use this type to make parameters optional in GraphQL clients\n- when no variables need to be passed.\n \\*/\n type EmptyVariables = {\n [key: string]: never;\n };\n /\\*\\*\n- GraphQL client's generic operation interface.\n \\*/\n interface CodegenOperations {\n [key: string]: any;\n }\n /\\*\\*\n- Used as the return type for GraphQL clients. It picks\n- the return type from the generated operation types.\n- @example\n- graphqlQuery: (...) => Promise<ClientReturn<...>>\n- graphqlQuery: (...) => Promise<{data: ClientReturn<...>}>\n \\*/\n type ClientReturn<GeneratedOperations extends CodegenOperations, RawGqlString extends string, OverrideReturnType extends any = never> = IsNever<OverrideReturnType> extends true ? RawGqlString extends keyof GeneratedOperations ? GeneratedOperations[RawGqlString][\"return\"] : any : OverrideReturnType;\n /\\*\\*\n- Checks if the generated variables for an operation\n- are optional or required.\n \\*/\n type IsOptionalVariables<VariablesParam, OptionalVariableNames extends string = never, VariablesWithoutOptionals = Omit<VariablesParam, OptionalVariableNames>> = VariablesWithoutOptionals extends EmptyVariables ? true : GenericVariables extends VariablesParam ? true : Partial<VariablesWithoutOptionals> extends VariablesWithoutOptionals ? true : false;\n /\\*\\*\n- Used as the type for the GraphQL client's variables. It checks\n- the generated operation types to see if variables are optional.\n- @example\n- graphqlQuery: (query: string, param: ClientVariables<...>) => Promise<...>\n- Where `param` is required.\n \\*/\n type ClientVariables<GeneratedOperations extends CodegenOperations, RawGqlString extends string, OptionalVariableNames extends string = never, VariablesKey extends string = \"variables\", GeneratedVariables = RawGqlString extends keyof GeneratedOperations ? SetOptional<GeneratedOperations[RawGqlString][\"variables\"], Extract<keyof GeneratedOperations[RawGqlString][\"variables\"], OptionalVariableNames>> : GenericVariables, VariablesWrapper = Record<VariablesKey, GeneratedVariables>> = IsOptionalVariables<GeneratedVariables, OptionalVariableNames> extends true ? Partial<VariablesWrapper> : VariablesWrapper;\n /\\*\\*\n- Similar to ClientVariables, but makes the whole wrapper optional:\n- @example\n- graphqlQuery: (query: string, ...params: ClientVariablesInRestParams<...>) => Promise<...>\n- Where the first item in `params` might be optional depending on the query.\n \\*/\n type ClientVariablesInRestParams<GeneratedOperations extends CodegenOperations, RawGqlString extends string, OtherParams extends Record<string, any> = {}, OptionalVariableNames extends string = never, ProcessedVariables = OtherParams & ClientVariables<GeneratedOperations, RawGqlString, OptionalVariableNames>> = Partial<OtherParams> extends OtherParams ? IsOptionalVariables<GeneratedOperations[RawGqlString][\"variables\"], OptionalVariableNames> extends true ? [\n ProcessedVariables?\n ] : [\n ProcessedVariables\n ] : [\n ProcessedVariables\n ];\n\ndeclare class GraphQLError extends Error {\n/**\n_ If an error can be associated to a particular point in the requested\n_ GraphQL document, it should contain a list of locations.\n\\*/\nlocations?: Array<{\nline: number;\ncolumn: number;\n}>;\n/**\n_ If an error can be associated to a particular field in the GraphQL result,\n_ it _must_ contain an entry with the key `path` that details the path of\n_ the response field which experienced the error. This allows clients to\n_ identify whether a null result is intentional or caused by a runtime error.\n_/\npath?: Array<string | number>;\n/\\*\\*\n_ Reserved for implementors to extend the protocol however they see fit,\n_ and hence there are no additional restrictions on its contents.\n_/\nextensions?: {\n[key: string]: unknown;\n};\nconstructor(message?: string, options?: Pick<GraphQLError, 'locations' | 'path' | 'extensions' | 'stack' | 'cause'> & {\nquery?: string;\nqueryVariables?: GenericVariables;\nrequestId?: string | null;\nclientOperation?: string;\n});\nget [Symbol.toStringTag](): string;\n/**\n_ Note: `toString()` is internally used by `console.log(...)` / `console.error(...)`\n_ when ingesting logs in Oxygen production. Therefore, we want to make sure that\n_ the error message is as informative as possible instead of `[object Object]`.\n_/\ntoString(): string;\n/**\n_ Note: toJSON`is internally used by`JSON.stringify(...)`.\n_ The most common scenario when this error instance is going to be stringified is\n_ when it's passed to Remix' `json` and `defer` functions: e.g. `{promise: storefront.query(...)}`.\n_ In this situation, we don't want to expose private error information to the browser so we only\n_ do it in development.\n_/\ntoJSON(): Pick<GraphQLError, \"message\" | \"locations\" | \"path\" | \"extensions\" | \"stack\" | \"name\">;\n}\n\ntype CrossRuntimeRequest = {\nurl?: string;\nmethod?: string;\nheaders: {\nget?: (key: string) => string | null | undefined;\n[key: string]: any;\n};\n};\n\ntype DataFunctionValue = Response | NonNullable<unknown> | null;\ntype JsonGraphQLError$1 = ReturnType<GraphQLError['toJSON']>;\ntype Buyer = Partial<BuyerInput>;\ntype CustomerAPIResponse<ReturnType> = {\ndata: ReturnType;\nerrors: Array<{\nmessage: string;\nlocations?: Array<{\nline: number;\ncolumn: number;\n}>;\npath?: Array<string>;\nextensions: {\ncode: string;\n};\n}>;\nextensions: {\ncost: {\nrequestQueryCost: number;\nactualQueryCakes: number;\nthrottleStatus: {\nmaximumAvailable: number;\ncurrentAvailable: number;\nrestoreRate: number;\n};\n};\n};\n};\ninterface CustomerAccountQueries {\n}\ninterface CustomerAccountMutations {\n}\ntype LoginOptions = {\nuiLocales?: LanguageCode;\nlocale?: string;\ncountryCode?: CountryCode;\nacrValues?: string;\nloginHint?: string;\nloginHintMode?: string;\n};\ntype LogoutOptions = {\n/** The url to redirect customer to after logout, should be a relative URL. This url will need to included in Customer Account API's application setup for logout URI. The default value is current app origin, which is automatically setup in admin when using `--customer-account-push` flag with dev. \\*/\npostLogoutRedirectUri?: string;\n/** Add custom headers to the logout redirect. _/\nheaders?: HeadersInit;\n/\\*\\* If true, custom data in the session will not be cleared on logout. _/\nkeepSession?: boolean;\n};\ntype CustomerAccount = {\n/** The i18n configuration for Customer Account API \\*/\ni18n: {\nlanguage: LanguageCode;\n};\n/** Start the OAuth login flow. This function should be called and returned from a Remix loader.\n_ It redirects the customer to a Shopify login domain. It also defined the final path the customer\n_ lands on at the end of the oAuth flow with the value of the `return_to` query param. (This is\n_ automatically setup unless `customAuthStatusHandler` option is in use)\n_\n_ @param options.uiLocales - The displayed language of the login page. Only support for the following languages:\n_ `en`, `fr`, `cs`, `da`, `de`, `es`, `fi`, `it`, `ja`, `ko`, `nb`, `nl`, `pl`, `pt-BR`, `pt-PT`,\n_ `sv`, `th`, `tr`, `vi`, `zh-CN`, `zh-TW`. If supplied any other language code, it will default to `en`.\n_ _/\nlogin: (options?: LoginOptions) => Promise<Response>;\n/\\*\\* On successful login, the customer redirects back to your app. This function validates the OAuth response and exchanges the authorization code for an access token and refresh token. It also persists the tokens on your session. This function should be called and returned from the Remix loader configured as the redirect URI within the Customer Account API settings in admin. _/\nauthorize: () => Promise<Response>;\n/** Returns if the customer is logged in. It also checks if the access token is expired and refreshes it if needed. \\*/\nisLoggedIn: () => Promise<boolean>;\n/** Check for a not logged in customer and redirect customer to login page. The redirect can be overwritten with `customAuthStatusHandler` option. _/\nhandleAuthStatus: () => Promise<void>;\n/\\*\\* Returns CustomerAccessToken if the customer is logged in. It also run a expiry check and does a token refresh if needed. _/\ngetAccessToken: () => Promise<string | undefined>;\n/** Creates the fully-qualified URL to your store's GraphQL endpoint.\\*/\ngetApiUrl: () => string;\n/** Logout the customer by clearing the session and redirecting to the login domain. It should be called and returned from a Remix action. The path app should redirect to after logout can be setup in Customer Account API settings in admin. \\*\n_ @param options.postLogoutRedirectUri - The url to redirect customer to after logout, should be a relative URL. This url will need to included in Customer Account API's application setup for logout URI. The default value is current app origin, which is automatically setup in admin when using `--customer-account-push` flag with dev.\n_ @param options.headers - These will be passed along to the logout redirect. You can use these to set/clear cookies on logout, like the cart.\n_ @param options.keepSession - If true, custom data in the session will not be cleared on logout.\n_ _/\nlogout: (options?: LogoutOptions) => Promise<Response>;\n/\\*\\* Execute a GraphQL query against the Customer Account API. This method execute `handleAuthStatus()` ahead of query. _/\nquery: <OverrideReturnType extends any = never, RawGqlString extends string = string>(query: RawGqlString, ...options: ClientVariablesInRestParams<CustomerAccountQueries, RawGqlString>) => Promise<Omit<CustomerAPIResponse<ClientReturn<CustomerAccountQueries, RawGqlString, OverrideReturnType>>, 'errors'> & {\nerrors?: JsonGraphQLError$1[];\n}>;\n/** Execute a GraphQL mutation against the Customer Account API. This method execute `handleAuthStatus()` ahead of mutation. \\*/\nmutate: <OverrideReturnType extends any = never, RawGqlString extends string = string>(mutation: RawGqlString, ...options: ClientVariablesInRestParams<CustomerAccountMutations, RawGqlString>) => Promise<Omit<CustomerAPIResponse<ClientReturn<CustomerAccountMutations, RawGqlString, OverrideReturnType>>, 'errors'> & {\nerrors?: JsonGraphQLError$1[];\n}>;\n/** Set buyer information into session._/\nsetBuyer: (buyer: Buyer) => void;\n/\\*\\* Get buyer token and company location id from session._/\ngetBuyer: () => Promise<Buyer>;\n/** Deprecated. Please use setBuyer. Set buyer information into session.\\*/\nUNSTABLE_setBuyer: (buyer: Buyer) => void;\n/** Deprecated. Please use getBuyer. Get buyer token and company location id from session._/\nUNSTABLE_getBuyer: () => Promise<Buyer>;\n};\ntype CustomerAccountOptions = {\n/\\*\\* The client requires a session to persist the auth and refresh token. By default Hydrogen ships with cookie session storage, but you can use [another session storage](https://remix.run/docs/en/main/utils/sessions) implementation. _/\nsession: HydrogenSession;\n/** Unique UUID prefixed with `shp_` associated with the application, this should be visible in the customer account api settings in the Hydrogen admin channel. Mock.shop doesn't automatically supply customerAccountId. Use `npx shopify hydrogen env pull` to link your store credentials. \\*/\ncustomerAccountId: string;\n/** The shop id. Mock.shop doesn't automatically supply shopId. Use `npx shopify hydrogen env pull` to link your store credentials _/\nshopId: string;\n/\\*\\* Override the version of the API _/\ncustomerApiVersion?: string;\n/** The object for the current Request. It should be provided by your platform. \\*/\nrequest: CrossRuntimeRequest;\n/** The waitUntil function is used to keep the current request/response lifecycle alive even after a response has been sent. It should be provided by your platform. _/\nwaitUntil?: WaitUntil;\n/\\*\\* This is the route in your app that authorizes the customer after logging in. Make sure to call `customer.authorize()` within the loader on this route. It defaults to `/account/authorize`. _/\nauthUrl?: string;\n/** Use this method to overwrite the default logged-out redirect behavior. The default handler [throws a redirect](https://remix.run/docs/en/main/utils/redirect#:~:text=!session) to `/account/login` with current path as `return_to` query param. \\*/\ncustomAuthStatusHandler?: () => DataFunctionValue;\n/** Whether it should print GraphQL errors automatically. Defaults to true _/\nlogErrors?: boolean | ((error?: Error) => boolean);\n/\\*\\* The path to redirect to after login. Defaults to `/account`. _/\ndefaultRedirectPath?: string;\n/** The path to login. Defaults to `/account/login`. \\*/\nloginPath?: string;\n/** The oauth authorize path. Defaults to `/account/authorize`. _/\nauthorizePath?: string;\n/\\*\\* Deprecated. `unstableB2b` is now stable. Please remove. _/\nunstableB2b?: boolean;\n/\\*_ Localization data. _/\nlanguage?: LanguageCode;\n};\n\ntype CartGetProps = {\n/**\n_ The cart ID.\n_ @default cart.getCartId();\n\\*/\ncartId?: string;\n/**\n_ The country code.\n_ @default storefront.i18n.country\n_/\ncountry?: CountryCode$1;\n/\\*\\*\n_ The language code.\n_ @default storefront.i18n.language\n_/\nlanguage?: LanguageCode$1;\n/**\n_ The number of cart lines to be returned.\n_ @default 100\n\\*/\nnumCartLines?: number;\n/**\n_ Visitor consent preferences for the Storefront API's @inContext directive.\n_\n_ **Most Hydrogen storefronts do NOT need this.** If you're using Hydrogen's\n_ analytics provider or Shopify's Customer Privacy API (including third-party\n_ consent services integrated with it), consent is handled automatically.\n_\n_ This option exists for Storefront API parity and is primarily intended for\n_ non-Hydrogen integrations like Checkout Kit that manage consent outside\n_ Shopify's standard consent flow.\n_\n_ When provided, consent is encoded into the cart's checkoutUrl via the \\_cs parameter.\n_/\nvisitorConsent?: VisitorConsent$1;\n};\ntype CartGetFunction = (cartInput?: CartGetProps) => Promise<CartReturn | null>;\ntype CartGetOptions = CartQueryOptions & {\n/\\*\\*\n_ The customer account client instance created by [`createCustomerAccountClient`](docs/api/hydrogen/latest/utilities/createcustomeraccountclient).\n_/\ncustomerAccount?: CustomerAccount;\n};\ndeclare function cartGetDefault({ storefront, customerAccount, getCartId, cartFragment, }: CartGetOptions): CartGetFunction;\n\ntype CartCreateFunction = (input: CartInput, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartCreateDefault(options: CartQueryOptions): CartCreateFunction;\n\ntype CartLinesAddFunction = (lines: Array<CartLineInput>, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartLinesAddDefault(options: CartQueryOptions): CartLinesAddFunction;\n\ntype CartLinesUpdateFunction = (lines: CartLineUpdateInput[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartLinesUpdateDefault(options: CartQueryOptions): CartLinesUpdateFunction;\n\ntype CartLinesRemoveFunction = (lineIds: string[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartLinesRemoveDefault(options: CartQueryOptions): CartLinesRemoveFunction;\n\ntype CartDiscountCodesUpdateFunction = (discountCodes: string[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartDiscountCodesUpdateDefault(options: CartQueryOptions): CartDiscountCodesUpdateFunction;\n\ntype CartBuyerIdentityUpdateFunction = (buyerIdentity: CartBuyerIdentityInput, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartBuyerIdentityUpdateDefault(options: CartQueryOptions): CartBuyerIdentityUpdateFunction;\n\ntype CartNoteUpdateFunction = (note: string, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartNoteUpdateDefault(options: CartQueryOptions): CartNoteUpdateFunction;\n\ntype CartSelectedDeliveryOptionsUpdateFunction = (selectedDeliveryOptions: CartSelectedDeliveryOptionInput[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartSelectedDeliveryOptionsUpdateDefault(options: CartQueryOptions): CartSelectedDeliveryOptionsUpdateFunction;\n\ntype CartAttributesUpdateFunction = (attributes: AttributeInput[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartAttributesUpdateDefault(options: CartQueryOptions): CartAttributesUpdateFunction;\n\ntype CartMetafieldsSetFunction = (metafields: MetafieldWithoutOwnerId[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartMetafieldsSetDefault(options: CartQueryOptions): CartMetafieldsSetFunction;\n\ntype CartMetafieldDeleteFunction = (key: Scalars['String']['input'], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartMetafieldDeleteDefault(options: CartQueryOptions): CartMetafieldDeleteFunction;\n\ntype CartGiftCardCodesUpdateFunction = (giftCardCodes: string[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\n/\\*\\*\n\n- Updates (replaces) gift card codes in the cart.\n-\n- To add codes without replacing, use `cartGiftCardCodesAdd` (API 2025-10+).\n-\n- @param {CartQueryOptions} options - Cart query options including storefront client and cart fragment.\n- @returns {CartGiftCardCodesUpdateFunction} - Function accepting gift card codes array and optional parameters.\n-\n- @example Replace all gift card codes\n- const updateGiftCardCodes = cartGiftCardCodesUpdateDefault({ storefront, getCartId });\n- await updateGiftCardCodes(['SUMMER2025', 'WELCOME10']);\n \\*/\n declare function cartGiftCardCodesUpdateDefault(options: CartQueryOptions): CartGiftCardCodesUpdateFunction;\n\ntype CartGiftCardCodesAddFunction = (giftCardCodes: string[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\n/\\*\\*\n\n- Adds gift card codes to the cart without replacing existing ones.\n-\n- This function sends a mutation to the Storefront API to add one or more gift card codes to the cart.\n- Unlike `cartGiftCardCodesUpdate` which replaces all codes, this mutation appends new codes to existing ones.\n-\n- @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n- @returns {CartGiftCardCodesAddFunction} - A function that takes an array of gift card codes and optional parameters, and returns the result of the API call.\n-\n- @example Add gift card codes\n- const addGiftCardCodes = cartGiftCardCodesAddDefault({ storefront, getCartId });\n- await addGiftCardCodes(['SUMMER2025', 'WELCOME10']);\n \\*/\n declare function cartGiftCardCodesAddDefault(options: CartQueryOptions): CartGiftCardCodesAddFunction;\n\ntype CartGiftCardCodesRemoveFunction = (appliedGiftCardIds: string[], optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\ndeclare function cartGiftCardCodesRemoveDefault(options: CartQueryOptions): CartGiftCardCodesRemoveFunction;\n\ntype CartDeliveryAddressesAddFunction = (addresses: Array<CartSelectableAddressInput>, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\n/\\*\\*\n\n- Adds delivery addresses to the cart.\n-\n- This function sends a mutation to the storefront API to add one or more delivery addresses to the cart.\n- It returns the result of the mutation, including any errors that occurred.\n-\n- @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n- @returns {CartDeliveryAddressAddFunction} - A function that takes an array of addresses and optional parameters, and returns the result of the API call.\n-\n- @example\n- const addDeliveryAddresses = cartDeliveryAddressesAddDefault({ storefront, getCartId });\n- const result = await addDeliveryAddresses([\n- {\n- address1: '123 Main St',\n- city: 'Anytown',\n- countryCode: 'US'\n- // other address fields...\n- }\n- ], { someOptionalParam: 'value' }\n- );\n \\*/\n declare function cartDeliveryAddressesAddDefault(options: CartQueryOptions): CartDeliveryAddressesAddFunction;\n\ntype CartDeliveryAddressesRemoveFunction = (addressIds: Array<Scalars['ID']['input']> | Array<string>, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\n/\\*\\*\n\n- Removes delivery addresses from the cart.\n-\n- This function sends a mutation to the storefront API to remove one or more delivery addresses from the cart.\n- It returns the result of the mutation, including any errors that occurred.\n-\n- @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n- @returns {CartDeliveryAddressRemoveFunction} - A function that takes an array of address IDs and optional parameters, and returns the result of the API call.\n-\n- @example\n- const removeDeliveryAddresses = cartDeliveryAddressesRemoveDefault({ storefront, getCartId });\n- const result = await removeDeliveryAddresses([\n- \"gid://shopify/<objectName>/10079785100\"\n- ],\n- { someOptionalParam: 'value' });\n \\*/\n declare function cartDeliveryAddressesRemoveDefault(options: CartQueryOptions): CartDeliveryAddressesRemoveFunction;\n\ntype CartDeliveryAddressesUpdateFunction = (addresses: Array<CartSelectableAddressUpdateInput>, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\n/\\*\\*\n\n- Updates delivery addresses in the cart.\n-\n- Pass an empty array to clear all delivery addresses from the cart.\n-\n- @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n- @returns {CartDeliveryAddressUpdateFunction} - A function that takes an array of addresses and optional parameters, and returns the result of the API call.\n-\n- @example Clear all delivery addresses\n- const updateAddresses = cartDeliveryAddressesUpdateDefault(cartQueryOptions);\n- await updateAddresses([]);\n-\n- @example Update specific delivery addresses\n- const updateAddresses = cartDeliveryAddressesUpdateDefault(cartQueryOptions);\n- await updateAddresses([\n {\n \"address\": {\n \"copyFromCustomerAddressId\": \"gid://shopify/<objectName>/10079785100\",\n \"deliveryAddress\": {\n \"address1\": \"<your-address1>\",\n \"address2\": \"<your-address2>\",\n \"city\": \"<your-city>\",\n \"company\": \"<your-company>\",\n \"countryCode\": \"AC\",\n \"firstName\": \"<your-firstName>\",\n \"lastName\": \"<your-lastName>\",\n \"phone\": \"<your-phone>\",\n \"provinceCode\": \"<your-provinceCode>\",\n \"zip\": \"<your-zip>\"\n }\n },\n \"id\": \"gid://shopify/<objectName>/10079785100\",\n \"oneTimeUse\": true,\n \"selected\": true,\n \"validationStrategy\": \"COUNTRY_CODE_ONLY\"\n }\n ],{ someOptionalParam: 'value' });\n \\*/\n declare function cartDeliveryAddressesUpdateDefault(options: CartQueryOptions): CartDeliveryAddressesUpdateFunction;\n\ntype CartDeliveryAddressesReplaceFunction = (addresses: Array<CartSelectableAddressInput>, optionalParams?: CartOptionalInput) => Promise<CartQueryDataReturn>;\n/\\*\\*\n\n- Replaces all delivery addresses on the cart.\n-\n- This function sends a mutation to the storefront API to replace all delivery addresses on the cart\n- with the provided addresses. It returns the result of the mutation, including any errors that occurred.\n-\n- @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n- @returns {CartDeliveryAddressesReplaceFunction} - A function that takes an array of addresses and optional parameters, and returns the result of the API call.\n-\n- @example\n- const replaceDeliveryAddresses = cartDeliveryAddressesReplaceDefault({ storefront, getCartId });\n- const result = await replaceDeliveryAddresses([\n- {\n- address: {\n- deliveryAddress: {\n- address1: '123 Main St',\n- city: 'Anytown',\n- countryCode: 'US'\n- }\n- },\n- selected: true\n- }\n- ], { someOptionalParam: 'value' }\n- );\n \\*/\n declare function cartDeliveryAddressesReplaceDefault(options: CartQueryOptions): CartDeliveryAddressesReplaceFunction;\n\ntype CartHandlerOptions = {\nstorefront: Storefront;\ncustomerAccount?: CustomerAccount;\ngetCartId: () => string | undefined;\nsetCartId: (cartId: string) => Headers;\ncartQueryFragment?: string;\ncartMutateFragment?: string;\nbuyerIdentity?: CartBuyerIdentityInput;\n};\ntype CustomMethodsBase = Record<string, Function>;\ntype CartHandlerOptionsWithCustom<TCustomMethods extends CustomMethodsBase> = CartHandlerOptions & {\ncustomMethods?: TCustomMethods;\n};\ntype HydrogenCart = {\nget: ReturnType<typeof cartGetDefault>;\ngetCartId: () => string | undefined;\nsetCartId: (cartId: string) => Headers;\ncreate: ReturnType<typeof cartCreateDefault>;\naddLines: ReturnType<typeof cartLinesAddDefault>;\nupdateLines: ReturnType<typeof cartLinesUpdateDefault>;\nremoveLines: ReturnType<typeof cartLinesRemoveDefault>;\nupdateDiscountCodes: ReturnType<typeof cartDiscountCodesUpdateDefault>;\nupdateGiftCardCodes: ReturnType<typeof cartGiftCardCodesUpdateDefault>;\naddGiftCardCodes: ReturnType<typeof cartGiftCardCodesAddDefault>;\nremoveGiftCardCodes: ReturnType<typeof cartGiftCardCodesRemoveDefault>;\nupdateBuyerIdentity: ReturnType<typeof cartBuyerIdentityUpdateDefault>;\nupdateNote: ReturnType<typeof cartNoteUpdateDefault>;\nupdateSelectedDeliveryOption: ReturnType<typeof cartSelectedDeliveryOptionsUpdateDefault>;\nupdateAttributes: ReturnType<typeof cartAttributesUpdateDefault>;\nsetMetafields: ReturnType<typeof cartMetafieldsSetDefault>;\ndeleteMetafield: ReturnType<typeof cartMetafieldDeleteDefault>;\n/**\n_ Adds delivery addresses to the cart.\n_\n_ This function sends a mutation to the storefront API to add one or more delivery addresses to the cart.\n_ It returns the result of the mutation, including any errors that occurred. \\*\n_ @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n_ @returns {ReturnType<typeof cartDeliveryAddressesAddDefault>} - A function that takes an array of addresses and optional parameters, and returns the result of the API call. \\*\n_ @example\n_ const result = await cart.addDeliveryAddresses(\n_ [\n_ {\n_ address1: '123 Main St',\n_ city: 'Anytown',\n_ countryCode: 'US'\n_ }\n_ ],\n_ { someOptionalParam: 'value' }\n_ );\n_/\naddDeliveryAddresses: ReturnType<typeof cartDeliveryAddressesAddDefault>;\n/**\n_ Removes delivery addresses from the cart.\n_\n_ This function sends a mutation to the storefront API to remove one or more delivery addresses from the cart.\n_ It returns the result of the mutation, including any errors that occurred. \\*\n_ @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n_ @returns {CartDeliveryAddressRemoveFunction} - A function that takes an array of address IDs and optional parameters, and returns the result of the API call. \\*\n_ @example\n_ const result = await cart.removeDeliveryAddresses([\n\n- \"gid://shopify/<objectName>/10079785100\"\n- ],\n _ { someOptionalParam: 'value' });\n _/\n removeDeliveryAddresses: ReturnType<typeof cartDeliveryAddressesRemoveDefault>;\n /**\n _ Updates delivery addresses in the cart.\n _\n _ This function sends a mutation to the storefront API to update one or more delivery addresses in the cart.\n _ It returns the result of the mutation, including any errors that occurred. \\*\n _ @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n _ @returns {CartDeliveryAddressUpdateFunction} - A function that takes an array of addresses and optional parameters, and returns the result of the API call. \\*\n _ const result = await cart.updateDeliveryAddresses([\n {\n \"address\": {\n \"copyFromCustomerAddressId\": \"gid://shopify/<objectName>/10079785100\",\n \"deliveryAddress\": {\n \"address1\": \"<your-address1>\",\n \"address2\": \"<your-address2>\",\n \"city\": \"<your-city>\",\n \"company\": \"<your-company>\",\n \"countryCode\": \"AC\",\n \"firstName\": \"<your-firstName>\",\n \"lastName\": \"<your-lastName>\",\n \"phone\": \"<your-phone>\",\n \"provinceCode\": \"<your-provinceCode>\",\n \"zip\": \"<your-zip>\"\n }\n },\n \"id\": \"gid://shopify/<objectName>/10079785100\",\n \"oneTimeUse\": true,\n \"selected\": true,\n \"validationStrategy\": \"COUNTRY_CODE_ONLY\"\n }\n ],{ someOptionalParam: 'value' });\n _/\n updateDeliveryAddresses: ReturnType<typeof cartDeliveryAddressesUpdateDefault>;\n /**\n _ Replaces all delivery addresses on the cart.\n _\n _ This function sends a mutation to the storefront API to replace all delivery addresses on the cart\n _ with the provided addresses. It returns the result of the mutation, including any errors that occurred. \\*\n _ @param {CartQueryOptions} options - The options for the cart query, including the storefront API client and cart fragment.\n _ @returns {CartDeliveryAddressesReplaceFunction} - A function that takes an array of addresses and optional parameters, and returns the result of the API call. \\*\n _ @example\n _ const result = await cart.replaceDeliveryAddresses([\n- {\n- address: {\n- deliveryAddress: {\n- address1: '123 Main St',\n- city: 'Anytown',\n- countryCode: 'US'\n- }\n- },\n- selected: true\n- }\n- ], { someOptionalParam: 'value' });\n \\*/\n replaceDeliveryAddresses: ReturnType<typeof cartDeliveryAddressesReplaceDefault>;\n };\n type HydrogenCartCustom<TCustomMethods extends Partial<HydrogenCart> & CustomMethodsBase> = Omit<HydrogenCart, keyof TCustomMethods> & TCustomMethods;\n declare function createCartHandler(options: CartHandlerOptions): HydrogenCart;\n declare function createCartHandler<TCustomMethods extends CustomMethodsBase>(options: CartHandlerOptionsWithCustom<TCustomMethods>): HydrogenCartCustom<TCustomMethods>;\n\ntype RequestEventPayload = {\n\\_\\_fromVite?: boolean;\nurl: string;\neventType: 'request' | 'subrequest';\nrequestId?: string | null;\npurpose?: string | null;\nstartTime: number;\nendTime?: number;\ncacheStatus?: 'MISS' | 'HIT' | 'STALE' | 'PUT';\nwaitUntil?: WaitUntil;\ngraphql?: string | null;\nstackInfo?: {\nfile?: string;\nfunc?: string;\nline?: number;\ncolumn?: number;\n};\nresponsePayload?: any;\nresponseInit?: Omit<ResponseInit, 'headers'> & {\nheaders?: [string, string][];\n};\ncache?: {\nstatus?: string;\nstrategy?: string;\nkey?: string | readonly unknown[];\n};\ndisplayName?: string;\n};\n\ndeclare const CUSTOMER_ACCOUNT_SESSION_KEY = \"customerAccount\";\ndeclare const BUYER_SESSION_KEY = \"buyer\";\n\ninterface HydrogenSessionData {\n[CUSTOMER_ACCOUNT_SESSION_KEY]: {\naccessToken?: string;\nexpiresAt?: string;\nrefreshToken?: string;\ncodeVerifier?: string;\nidToken?: string;\nnonce?: string;\nstate?: string;\nredirectPath?: string;\n};\n// for B2B buyer context\n[BUYER_SESSION_KEY]: Partial<BuyerInput>;\n}\n\ninterface HydrogenSession<\nData = SessionData,\nFlashData = FlashSessionData,\n\n> {\n> get: Session<HydrogenSessionData & Data, FlashData>['get'];\n> set: Session<HydrogenSessionData & Data, FlashData>['set'];\n> unset: Session<HydrogenSessionData & Data, FlashData>['unset'];\n> commit: () => ReturnType<\n\n SessionStorage<HydrogenSessionData & Data, FlashData>['commitSession']\n\n> ;\n> destroy?: () => ReturnType<\n\n SessionStorage<HydrogenSessionData & Data, FlashData>['destroySession']\n\n> ;\n> isPending?: boolean;\n> }\n\ntype WaitUntil = (promise: Promise<unknown>) => void;\n\ninterface HydrogenEnv {\nSESSION_SECRET: string;\nPUBLIC_STOREFRONT_API_TOKEN: string;\nPRIVATE_STOREFRONT_API_TOKEN: string;\nPUBLIC_STORE_DOMAIN: string;\nPUBLIC_STOREFRONT_ID: string;\nPUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID: string;\nPUBLIC_CUSTOMER_ACCOUNT_API_URL: string;\nPUBLIC_CHECKOUT_DOMAIN: string;\nSHOP_ID: string;\n}\n\ntype StorefrontHeaders = {\n/** A unique ID that correlates all sub-requests together. \\*/\nrequestGroupId: string | null;\n/** The IP address of the client. _/\nbuyerIp: string | null;\n/\\*\\* The signature of the client's IP address for verification. _/\nbuyerIpSig: string | null;\n/** The cookie header from the client \\*/\ncookie: string | null;\n/** The sec-purpose or purpose header value \\*/\npurpose: string | null;\n};\n\ninterface HydrogenRouterContextProvider<\nTSession extends HydrogenSession = HydrogenSession,\nTCustomMethods extends CustomMethodsBase | undefined = {},\nTI18n extends I18nBase = I18nBase,\nTEnv extends HydrogenEnv = Env,\n\n> extends RouterContextProvider {\n> /** A GraphQL client for querying the Storefront API \\*/\n> storefront: Storefront<TI18n>;\n> /** A GraphQL client for querying the Customer Account API _/\n> customerAccount: CustomerAccount;\n> /\\*\\* A collection of utilities used to interact with the cart _/\n> cart: TCustomMethods extends CustomMethodsBase\n\n ? HydrogenCartCustom<TCustomMethods>\n : HydrogenCart;\n\n/** Environment variables from the fetch function \\*/\nenv: TEnv;\n/** The waitUntil function for keeping requests alive _/\nwaitUntil?: WaitUntil;\n/\\*\\* Session implementation _/\nsession: TSession;\n}\n\ndeclare global {\ninterface Window {\nprivacyBanner: PrivacyBanner;\nShopify: {\ncustomerPrivacy: CustomerPrivacy;\n};\n}\ninterface Document {\naddEventListener<K extends keyof CustomEventMap>(\ntype: K,\nlistener: (this: Document, ev: CustomEventMap[K]) => void,\n): void;\nremoveEventListener<K extends keyof CustomEventMap>(\ntype: K,\nlistener: (this: Document, ev: CustomEventMap[K]) => void,\n): void;\ndispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K]): void;\n}\nvar **H2O_LOG_EVENT: undefined | ((event: RequestEventPayload) => void);\nvar **remix_devServerHooks:\n| undefined\n| {getCriticalCss: (...args: unknown[]) => any};\n}\n\ntype I18nBase = {\nlanguage: LanguageCode$1 | LanguageCode;\ncountry: CountryCode$1;\n};\ntype JsonGraphQLError = ReturnType<GraphQLError['toJSON']>;\ntype StorefrontApiErrors = JsonGraphQLError[] | undefined;\ntype StorefrontError = {\nerrors?: StorefrontApiErrors;\n};\n/\\*\\*\n\n- Wraps all the returned utilities from `createStorefrontClient`.\n \\*/\n type StorefrontClient<TI18n extends I18nBase> = {\n storefront: Storefront<TI18n>;\n };\n /\\*\\*\n- Maps all the queries found in the project to variables and return types.\n \\*/\n interface StorefrontQueries {\n }\n /\\*\\*\n- Maps all the mutations found in the project to variables and return types.\n \\*/\n interface StorefrontMutations {\n }\n type AutoAddedVariableNames = 'country' | 'language';\n type StorefrontCommonExtraParams = {\n headers?: HeadersInit;\n storefrontApiVersion?: string;\n displayName?: string;\n };\n /\\*\\*\n- Interface to interact with the Storefront API.\n _/\n type Storefront<TI18n extends I18nBase = I18nBase> = {\n query: <OverrideReturnType extends any = never, RawGqlString extends string = string>(query: RawGqlString, ...options: ClientVariablesInRestParams<StorefrontQueries, RawGqlString, StorefrontCommonExtraParams & Pick<StorefrontQueryOptions, 'cache'>, AutoAddedVariableNames>) => Promise<ClientReturn<StorefrontQueries, RawGqlString, OverrideReturnType> & StorefrontError>;\n mutate: <OverrideReturnType extends any = never, RawGqlString extends string = string>(mutation: RawGqlString, ...options: ClientVariablesInRestParams<StorefrontMutations, RawGqlString, StorefrontCommonExtraParams, AutoAddedVariableNames>) => Promise<ClientReturn<StorefrontMutations, RawGqlString, OverrideReturnType> & StorefrontError>;\n cache?: Cache;\n CacheNone: typeof CacheNone;\n CacheLong: typeof CacheLong;\n CacheShort: typeof CacheShort;\n CacheCustom: typeof CacheCustom;\n generateCacheControlHeader: typeof generateCacheControlHeader;\n getPublicTokenHeaders: ReturnType<typeof createStorefrontClient$1>['getPublicTokenHeaders'];\n getPrivateTokenHeaders: ReturnType<typeof createStorefrontClient$1>['getPrivateTokenHeaders'];\n getShopifyDomain: ReturnType<typeof createStorefrontClient$1>['getShopifyDomain'];\n getApiUrl: ReturnType<typeof createStorefrontClient$1>['getStorefrontApiUrl'];\n i18n: TI18n;\n getHeaders: () => Record<string, string>;\n /\\*\\*\n _ Checks if the request URL matches the Storefront API GraphQL endpoint.\n _/\n isStorefrontApiUrl: (request: {\n url?: string;\n }) => boolean;\n /\\*\\*\n _ Forwards the request to the Storefront API.\n _ It reads the API version from the request URL.\n _/\n forward: (request: Request, options?: Pick<StorefrontCommonExtraParams, 'storefrontApiVersion'>) => Promise<Response>;\n /**\n _ Sets the collected subrequest headers in the response.\n _ Useful to forward the cookies and server-timing headers\n _ from server subrequests to the browser.\n _/\n setCollectedSubrequestHeaders: (response: {\n headers: Headers;\n }) => void;\n };\n type HydrogenClientProps<TI18n> = {\n /** Storefront API headers. If on Oxygen, use `getStorefrontHeaders()` _/\n storefrontHeaders?: StorefrontHeaders;\n /\\*\\* An instance that implements the [Cache API](https://developer.mozilla.org/en-US/docs/Web/API/Cache) _/\n cache?: Cache;\n /** The globally unique identifier for the Shop \\*/\n storefrontId?: string;\n /** The `waitUntil` function is used to keep the current request/response lifecycle alive even after a response has been sent. It should be provided by your platform. _/\n waitUntil?: WaitUntil;\n /\\*\\* An object containing a country code and language code _/\n i18n?: TI18n;\n /** Whether it should print GraphQL errors automatically. Defaults to true \\*/\n logErrors?: boolean | ((error?: Error) => boolean);\n };\n type CreateStorefrontClientOptions<TI18n extends I18nBase> = HydrogenClientProps<TI18n> & StorefrontClientProps;\n type StorefrontQueryOptions = StorefrontCommonExtraParams & {\n query: string;\n mutation?: never;\n cache?: CachingStrategy;\n };\n /**\n- This function extends `createStorefrontClient` from [Hydrogen React](/docs/api/hydrogen-react/2026-01/utilities/createstorefrontclient). The additional arguments enable internationalization (i18n), caching, and other features particular to Remix and Oxygen.\n-\n- Learn more about [data fetching in Hydrogen](/docs/custom-storefronts/hydrogen/data-fetching/fetch-data).\n _/\n declare function createStorefrontClient<TI18n extends I18nBase>(options: CreateStorefrontClientOptions<TI18n>): StorefrontClient<TI18n>;\n declare function formatAPIResult<T>(data: T, errors: StorefrontApiErrors): T & StorefrontError;\n type CreateStorefrontClientForDocs<TI18n extends I18nBase> = {\n storefront?: StorefrontForDoc<TI18n>;\n };\n type StorefrontForDoc<TI18n extends I18nBase = I18nBase> = {\n /\\*\\* The function to run a query on Storefront API. _/\n query?: <TData = any>(query: string, options: StorefrontQueryOptionsForDocs) => Promise<TData & StorefrontError>;\n /** The function to run a mutation on Storefront API. \\*/\n mutate?: <TData = any>(mutation: string, options: StorefrontMutationOptionsForDocs) => Promise<TData & StorefrontError>;\n /** The cache instance passed in from the `createStorefrontClient` argument. _/\n cache?: Cache;\n /\\*\\* Re-export of [`CacheNone`](/docs/api/hydrogen/utilities/cachenone). _/\n CacheNone?: typeof CacheNone;\n /** Re-export of [`CacheLong`](/docs/api/hydrogen/utilities/cachelong). \\*/\n CacheLong?: typeof CacheLong;\n /** Re-export of [`CacheShort`](/docs/api/hydrogen/utilities/cacheshort). _/\n CacheShort?: typeof CacheShort;\n /\\*\\* Re-export of [`CacheCustom`](/docs/api/hydrogen/utilities/cachecustom). _/\n CacheCustom?: typeof CacheCustom;\n /** Re-export of [`generateCacheControlHeader`](/docs/api/hydrogen/utilities/generatecachecontrolheader). \\*/\n generateCacheControlHeader?: typeof generateCacheControlHeader;\n /** Returns an object that contains headers that are needed for each query to Storefront API GraphQL endpoint. See [`getPublicTokenHeaders` in Hydrogen React](/docs/api/hydrogen-react/2026-01/utilities/createstorefrontclient#:~:text=%27graphql%27.-,getPublicTokenHeaders,-(props%3F%3A) for more details. _/\n getPublicTokenHeaders?: ReturnType<typeof createStorefrontClient$1>['getPublicTokenHeaders'];\n /\\*\\* Returns an object that contains headers that are needed for each query to Storefront API GraphQL endpoint for API calls made from a server. See [`getPrivateTokenHeaders` in Hydrogen React](/docs/api/hydrogen-react/2026-01/utilities/createstorefrontclient#:~:text=storefrontApiVersion-,getPrivateTokenHeaders,-(props%3F%3A) for more details._/\n getPrivateTokenHeaders?: ReturnType<typeof createStorefrontClient$1>['getPrivateTokenHeaders'];\n /** Creates the fully-qualified URL to your myshopify.com domain. See [`getShopifyDomain` in Hydrogen React](/docs/api/hydrogen-react/2026-01/utilities/createstorefrontclient#:~:text=StorefrontClientReturn-,getShopifyDomain,-(props%3F%3A) for more details. \\*/\n getShopifyDomain?: ReturnType<typeof createStorefrontClient$1>['getShopifyDomain'];\n /** Creates the fully-qualified URL to your store's GraphQL endpoint. See [`getStorefrontApiUrl` in Hydrogen React](/docs/api/hydrogen-react/2026-01/utilities/createstorefrontclient#:~:text=storeDomain-,getStorefrontApiUrl,-(props%3F%3A) for more details._/\n getApiUrl?: ReturnType<typeof createStorefrontClient$1>['getStorefrontApiUrl'];\n /\\*\\* The `i18n` object passed in from the `createStorefrontClient` argument. _/\n i18n?: TI18n;\n };\n type StorefrontQueryOptionsForDocs = {\n /** The variables for the GraphQL query statement. \\*/\n variables?: Record<string, unknown>;\n /** The cache strategy for this query. Default to max-age=1, stale-while-revalidate=86399. _/\n cache?: CachingStrategy;\n /\\*\\* Additional headers for this query. _/\n headers?: HeadersInit;\n /** Override the Storefront API version for this query. \\*/\n storefrontApiVersion?: string;\n /** The name of the query for debugging in the Subrequest Profiler. _/\n displayName?: string;\n };\n type StorefrontMutationOptionsForDocs = {\n /\\*\\* The variables for the GraphQL mutation statement. _/\n variables?: Record<string, unknown>;\n /** Additional headers for this query. \\*/\n headers?: HeadersInit;\n /** Override the Storefront API version for this query. _/\n storefrontApiVersion?: string;\n /\\*\\* The name of the query for debugging in the Subrequest Profiler. _/\n displayName?: string;\n };\n\ntype CartOptionalInput = {\n/**\n_ The cart id.\n_ @default cart.getCartId();\n\\*/\ncartId?: Scalars['ID']['input'];\n/**\n_ The country code.\n_ @default storefront.i18n.country\n_/\ncountry?: CountryCode$1;\n/\\*\\*\n_ The language code.\n_ @default storefront.i18n.language\n_/\nlanguage?: LanguageCode$1;\n/\\*\\*\n\n- Visitor consent preferences for the Storefront API's @inContext directive.\n- \\* **Most Hydrogen storefronts do NOT need this.** If you're using Hydrogen's\n _ analytics provider or Shopify's Customer Privacy API (including third-party\n _ consent services integrated with it), consent is handled automatically. \\*\n _ This option exists for Storefront API parity and is primarily intended for\n _ non-Hydrogen integrations like Checkout Kit that manage consent outside\n _ Shopify's standard consent flow.\n _\n _ When provided, consent is encoded into the cart's checkoutUrl via the \\_cs parameter.\n _ @see https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context\n \\*/\n visitorConsent?: VisitorConsent$1;\n };\n type MetafieldWithoutOwnerId = Omit<CartMetafieldsSetInput, 'ownerId'>;\n type CartQueryOptions = {\n /**\n _ The storefront client instance created by [`createStorefrontClient`](docs/api/hydrogen/latest/utilities/createstorefrontclient).\n _/\n storefront: Storefront;\n /**\n _ A function that returns the cart ID.\n _/\n getCartId: () => string | undefined;\n /\\*\\*\n _ The cart fragment to override the one used in this query.\n _/\n cartFragment?: string;\n /\\*\\*\n _ The customer account instance created by [`createCustomerAccount`](docs/api/hydrogen/latest/customer/createcustomeraccount).\n _/\n customerAccount?: CustomerAccount;\n };\n type CartReturn = Cart & {\n errors?: StorefrontApiErrors;\n };\n type CartQueryData = {\n cart: Cart;\n userErrors?: CartUserError[] | MetafieldsSetUserError[] | MetafieldDeleteUserError[];\n warnings?: CartWarning[];\n };\n type CartQueryDataReturn = CartQueryData & {\n errors?: StorefrontApiErrors;\n };\n type CartQueryReturn<T> = (requiredParams: T, optionalParams?: CartOptionalInput) => Promise<CartQueryData>;\n\ndeclare const AnalyticsEvent: {\nPAGE*VIEWED: \"page_viewed\";\nPRODUCT_VIEWED: \"product_viewed\";\nCOLLECTION_VIEWED: \"collection_viewed\";\nCART_VIEWED: \"cart_viewed\";\nSEARCH_VIEWED: \"search_viewed\";\nCART_UPDATED: \"cart_updated\";\nPRODUCT_ADD_TO_CART: \"product_added_to_cart\";\nPRODUCT_REMOVED_FROM_CART: \"product_removed_from_cart\";\nCUSTOM_EVENT: `custom*${string}`;\n};\n\ntype OtherData = {\n/** Any other data that should be included in the event. \\*/\n[key: string]: unknown;\n};\ntype BasePayload = {\n/** The shop data passed in from the `AnalyticsProvider`. _/\nshop: ShopAnalytics | null;\n/\\*\\* The custom data passed in from the `AnalyticsProvider`. _/\ncustomData?: AnalyticsProviderProps['customData'];\n};\ntype UrlPayload = {\n/** The url location of when this event is collected. \\*/\nurl: string;\n};\ntype ProductPayload = {\n/** The product id. _/\nid: Product['id'];\n/\\*\\* The product title. _/\ntitle: Product['title'];\n/** The displaying variant price. \\*/\nprice: ProductVariant['price']['amount'];\n/** The product vendor. _/\nvendor: Product['vendor'];\n/\\*\\* The displaying variant id. _/\nvariantId: ProductVariant['id'];\n/** The displaying variant title. \\*/\nvariantTitle: ProductVariant['title'];\n/** The quantity of product. _/\nquantity: number;\n/\\*\\* The product sku. _/\nsku?: ProductVariant['sku'];\n/** The product type. \\*/\nproductType?: Product['productType'];\n};\ntype ProductsPayload = {\n/** The products associated with this event. _/\nproducts: Array<ProductPayload & OtherData>;\n};\ntype CollectionPayloadDetails = {\n/\\*\\* The collection id. _/\nid: string;\n/** The collection handle. \\*/\nhandle: string;\n};\ntype CollectionPayload = {\ncollection: CollectionPayloadDetails;\n};\ntype SearchPayload = {\n/** The search term used for the search results page _/\nsearchTerm: string;\n/\\*\\* The search results _/\nsearchResults?: any;\n};\ntype CartPayload = {\n/** The current cart state. \\*/\ncart: CartReturn | null;\n/** The previous cart state. _/\nprevCart: CartReturn | null;\n};\ntype CartLinePayload = {\n/\\*\\* The previous state of the cart line that got updated. _/\nprevLine?: CartLine | ComponentizableCartLine;\n/\\*_ The current state of the cart line that got updated. _/\ncurrentLine?: CartLine | ComponentizableCartLine;\n};\ntype CollectionViewPayload = CollectionPayload & UrlPayload & BasePayload;\ntype ProductViewPayload = ProductsPayload & UrlPayload & BasePayload;\ntype CartViewPayload = CartPayload & UrlPayload & BasePayload;\ntype PageViewPayload = UrlPayload & BasePayload;\ntype SearchViewPayload = SearchPayload & UrlPayload & BasePayload;\ntype CartUpdatePayload = CartPayload & BasePayload & OtherData;\ntype CartLineUpdatePayload = CartLinePayload & CartPayload & BasePayload & OtherData;\ntype CustomEventPayload = BasePayload & OtherData;\ntype BasicViewProps = {\ndata?: OtherData;\ncustomData?: OtherData;\n};\ntype ProductViewProps = {\ndata: ProductsPayload;\ncustomData?: OtherData;\n};\ntype CollectionViewProps = {\ndata: CollectionPayload;\ncustomData?: OtherData;\n};\ntype SearchViewProps = {\ndata?: SearchPayload;\ncustomData?: OtherData;\n};\ntype CustomViewProps = {\ntype: typeof AnalyticsEvent.CUSTOM_EVENT;\ndata?: OtherData;\ncustomData?: OtherData;\n};\ndeclare function AnalyticsProductView(props: ProductViewProps): react_jsx_runtime.JSX.Element;\ndeclare function AnalyticsCollectionView(props: CollectionViewProps): react_jsx_runtime.JSX.Element;\ndeclare function AnalyticsCartView(props: BasicViewProps): react_jsx_runtime.JSX.Element;\ndeclare function AnalyticsSearchView(props: SearchViewProps): react_jsx_runtime.JSX.Element;\ndeclare function AnalyticsCustomView(props: CustomViewProps): react_jsx_runtime.JSX.Element;\n\ntype ConsentStatus = boolean | undefined;\ntype VisitorConsent = {\nmarketing: ConsentStatus;\nanalytics: ConsentStatus;\npreferences: ConsentStatus;\nsale*of_data: ConsentStatus;\n};\ntype VisitorConsentCollected = {\nanalyticsAllowed: boolean;\nfirstPartyMarketingAllowed: boolean;\nmarketingAllowed: boolean;\npreferencesAllowed: boolean;\nsaleOfDataAllowed: boolean;\nthirdPartyMarketingAllowed: boolean;\n};\ntype CustomerPrivacyApiLoaded = boolean;\ntype CustomerPrivacyConsentConfig = {\ncheckoutRootDomain: string;\nstorefrontRootDomain?: string;\nstorefrontAccessToken: string;\ncountry?: CountryCode$1;\n/** The privacyBanner refers to `language` as `locale` \\*/\nlocale?: LanguageCode$1;\n};\ntype SetConsentHeadlessParams = VisitorConsent & CustomerPrivacyConsentConfig & {\nheadlessStorefront?: boolean;\n};\n/**\nIdeally this type should come from the Custoemr Privacy API sdk\nanalyticsProcessingAllowed -\ncurrentVisitorConsent\ndoesMerchantSupportGranularConsent\nfirstPartyMarketingAllowed\ngetCCPAConsent\ngetTrackingConsent\nmarketingAllowed\npreferencesProcessingAllowed\nsaleOfDataAllowed\nsaleOfDataRegion\nsetTrackingConsent\nshouldShowBanner\nshouldShowGDPRBanner\nthirdPartyMarketingAllowed\n**/\ntype OriginalCustomerPrivacy = {\ncurrentVisitorConsent: () => VisitorConsent;\npreferencesProcessingAllowed: () => boolean;\nsaleOfDataAllowed: () => boolean;\nmarketingAllowed: () => boolean;\nanalyticsProcessingAllowed: () => boolean;\nsetTrackingConsent: (consent: SetConsentHeadlessParams, callback: (data: {\nerror: string;\n} | undefined) => void) => void;\nshouldShowBanner: () => boolean;\n};\ntype CustomerPrivacy$1 = Omit<OriginalCustomerPrivacy, 'setTrackingConsent'> & {\nsetTrackingConsent: (consent: VisitorConsent, // we have already applied the headlessStorefront in the override\ncallback: (data: {\nerror: string;\n} | undefined) => void) => void;\n};\ntype PrivacyBanner$1 = {\nloadBanner: (options?: Partial<CustomerPrivacyConsentConfig>) => void;\nshowPreferences: (options?: Partial<CustomerPrivacyConsentConfig>) => void;\n};\ninterface CustomEventMap$1 {\nvisitorConsentCollected: CustomEvent<VisitorConsentCollected>;\ncustomerPrivacyApiLoaded: CustomEvent<CustomerPrivacyApiLoaded>;\n}\ntype CustomerPrivacyApiProps = {\n/** The production shop checkout domain url. */\ncheckoutDomain: string;\n/\\*\\* The storefront access token for the shop. _/\nstorefrontAccessToken: string;\n/** Whether to load the Shopify privacy banner as configured in Shopify admin. Defaults to true. \\*/\nwithPrivacyBanner?: boolean;\n/** Country code for the shop. _/\ncountry?: CountryCode$1;\n/\\*\\* Language code for the shop. _/\nlocale?: LanguageCode$1;\n/** Callback to be called when visitor consent is collected. \\*/\nonVisitorConsentCollected?: (consent: VisitorConsentCollected) => void;\n/** Callback to be call when customer privacy api is ready. _/\nonReady?: () => void;\n/\\*\\*\n_ Whether consent libraries can use same-domain requests to the Storefront API.\n_ Defaults to true if the standard route proxy is enabled in Hydrogen server.\n\\_/\nsameDomainForStorefrontApi?: boolean;\n};\ndeclare function useCustomerPrivacy(props: CustomerPrivacyApiProps): {\ncustomerPrivacy: CustomerPrivacy$1 | null;\nprivacyBanner?: PrivacyBanner$1 | null;\n};\n\ntype ShopAnalytics = {\n/** The shop ID. \\*/\nshopId: string;\n/** The language code that is being displayed to user. _/\nacceptedLanguage: LanguageCode$1;\n/\\*\\* The currency code that is being displayed to user. _/\ncurrency: CurrencyCode;\n/** The Hydrogen subchannel ID generated by Oxygen in the environment variable. \\*/\nhydrogenSubchannelId: string | '0';\n};\ntype Consent = Partial<Pick<CustomerPrivacyApiProps, 'checkoutDomain' | 'sameDomainForStorefrontApi' | 'storefrontAccessToken' | 'withPrivacyBanner' | 'country'>> & {\nlanguage?: LanguageCode$1;\n};\ntype AnalyticsProviderProps = {\n/** React children to render. _/\nchildren?: ReactNode;\n/\\*\\* The cart or cart promise to track for cart analytics. When there is a difference between the state of the cart, `AnalyticsProvider` will trigger a `cart_updated` event. It will also produce `product_added_to_cart` and `product_removed_from_cart` based on cart line quantity and cart line id changes. _/\ncart: Promise<CartReturn | null> | CartReturn | null;\n/** An optional function to set wether the user can be tracked. Defaults to Customer Privacy API's `window.Shopify.customerPrivacy.analyticsProcessingAllowed()`. \\*/\ncanTrack?: () => boolean;\n/** An optional custom payload to pass to all events. e.g language/locale/currency. _/\ncustomData?: Record<string, unknown>;\n/\\*\\* The shop configuration required to publish analytics events to Shopify. Use [`getShopAnalytics`](/docs/api/hydrogen/utilities/getshopanalytics). _/\nshop: Promise<ShopAnalytics | null> | ShopAnalytics | null;\n/** The customer privacy consent configuration and options. \\*/\nconsent: Consent;\n/** @deprecated Disable throwing errors when required props are missing. _/\ndisableThrowOnError?: boolean;\n/** The domain scope of the cookie set with `useShopifyCookies`. **/\ncookieDomain?: string;\n};\ntype AnalyticsContextValue = {\n/\\*\\* A function to tell you the current state of if the user can be tracked by analytics. Defaults to Customer Privacy API's `window.Shopify.customerPrivacy.analyticsProcessingAllowed()`. _/\ncanTrack: NonNullable<AnalyticsProviderProps['canTrack']>;\n/** The current cart state. \\*/\ncart: Awaited<AnalyticsProviderProps['cart']>;\n/** The custom data passed in from the `AnalyticsProvider`. _/\ncustomData?: AnalyticsProviderProps['customData'];\n/\\*\\* The previous cart state. _/\nprevCart: Awaited<AnalyticsProviderProps['cart']>;\n/** A function to publish an analytics event. \\*/\npublish: typeof publish;\n/** A function to register with the analytics provider. _/\nregister: (key: string) => {\nready: () => void;\n};\n/\\*\\* The shop configuration required to publish events to Shopify. _/\nshop: Awaited<AnalyticsProviderProps['shop']>;\n/** A function to subscribe to analytics events. \\*/\nsubscribe: typeof subscribe;\n/** The privacy banner SDK methods with the config applied _/\nprivacyBanner: PrivacyBanner$1 | null;\n/\\*\\* The customer privacy SDK methods with the config applied _/\ncustomerPrivacy: CustomerPrivacy$1 | null;\n};\ndeclare function subscribe(event: typeof AnalyticsEvent.PAGE\\*VIEWED, callback: (payload: PageViewPayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.PRODUCT_VIEWED, callback: (payload: ProductViewPayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.COLLECTION_VIEWED, callback: (payload: CollectionViewPayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.CART_VIEWED, callback: (payload: CartViewPayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.SEARCH_VIEWED, callback: (payload: SearchViewPayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.CART_UPDATED, callback: (payload: CartUpdatePayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.PRODUCT_ADD_TO_CART, callback: (payload: CartLineUpdatePayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.PRODUCT_REMOVED_FROM_CART, callback: (payload: CartLineUpdatePayload) => void): void;\ndeclare function subscribe(event: typeof AnalyticsEvent.CUSTOM_EVENT, callback: (payload: CustomEventPayload) => void): void;\ndeclare function publish(event: typeof AnalyticsEvent.PAGE_VIEWED, payload: PageViewPayload): void;\ndeclare function publish(event: typeof AnalyticsEvent.PRODUCT_VIEWED, payload: ProductViewPayload): void;\ndeclare function publish(event: typeof AnalyticsEvent.COLLECTION_VIEWED, payload: CollectionViewPayload): void;\ndeclare function publish(event: typeof AnalyticsEvent.CART_VIEWED, payload: CartViewPayload): void;\ndeclare function publish(event: typeof AnalyticsEvent.CART_UPDATED, payload: CartUpdatePayload): void;\ndeclare function publish(event: typeof AnalyticsEvent.PRODUCT_ADD_TO_CART, payload: CartLineUpdatePayload): void;\ndeclare function publish(event: typeof AnalyticsEvent.PRODUCT_REMOVED_FROM_CART, payload: CartLineUpdatePayload): void;\ndeclare function publish(event: typeof AnalyticsEvent.CUSTOM_EVENT, payload: OtherData): void;\ndeclare function AnalyticsProvider({ canTrack: customCanTrack, cart: currentCart, children, consent, customData, shop: shopProp, cookieDomain, }: AnalyticsProviderProps): JSX.Element;\ndeclare function useAnalytics(): AnalyticsContextValue;\ntype ShopAnalyticsProps = {\n/\\*\\*\n\n- The storefront client instance created by [`createStorefrontClient`](docs/api/hydrogen/utilities/createstorefrontclient).\n _/\n storefront: Storefront;\n /\\*\\*\n _ The `PUBLIC_STOREFRONT_ID` generated by Oxygen in the environment variable.\n \\_/\n publicStorefrontId: string;\n };\n declare function getShopAnalytics({ storefront, publicStorefrontId, }: ShopAnalyticsProps): Promise<ShopAnalytics | null>;\n declare const Analytics: {\n CartView: typeof AnalyticsCartView;\n CollectionView: typeof AnalyticsCollectionView;\n CustomView: typeof AnalyticsCustomView;\n ProductView: typeof AnalyticsProductView;\n Provider: typeof AnalyticsProvider;\n SearchView: typeof AnalyticsSearchView;\n };\n\n/\\*\\*\n\n- The cache key is used to uniquely identify a value in the cache.\n \\*/\n type CacheKey = string | readonly unknown[];\n type AddDebugDataParam = {\n displayName?: string;\n response?: Pick<Response, 'url' | 'status' | 'statusText' | 'headers'>;\n };\n type CacheActionFunctionParam = {\n addDebugData: (info: AddDebugDataParam) => void;\n };\n\ntype CreateWithCacheOptions = {\n/** An instance that implements the [Cache API](https://developer.mozilla.org/en-US/docs/Web/API/Cache) \\*/\ncache: Cache;\n/** The `waitUntil` function is used to keep the current request/response lifecycle alive even after a response has been sent. It should be provided by your platform. _/\nwaitUntil: WaitUntil;\n/\\*\\* The `request` object is used by the Subrequest profiler, and to access certain headers for debugging _/\nrequest: CrossRuntimeRequest;\n};\ntype WithCacheRunOptions<T> = {\n/** The cache key for this run \\*/\ncacheKey: CacheKey;\n/**\n_ Use the `CachingStrategy` to define a custom caching mechanism for your data.\n_ Or use one of the pre-defined caching strategies: [`CacheNone`](/docs/api/hydrogen/utilities/cachenone), [`CacheShort`](/docs/api/hydrogen/utilities/cacheshort), [`CacheLong`](/docs/api/hydrogen/utilities/cachelong).\n_/\ncacheStrategy: CachingStrategy;\n/\\*\\* Useful to avoid accidentally caching bad results _/\nshouldCacheResult: (value: T) => boolean;\n};\ntype WithCacheFetchOptions<T> = {\ndisplayName?: string;\n/**\n_ Use the `CachingStrategy` to define a custom caching mechanism for your data.\n_ Or use one of the pre-defined caching strategies: [`CacheNone`](/docs/api/hydrogen/utilities/cachenone), [`CacheShort`](/docs/api/hydrogen/utilities/cacheshort), [`CacheLong`](/docs/api/hydrogen/utilities/cachelong).\n\\*/\ncacheStrategy?: CachingStrategy;\n/** The cache key for this fetch _/\ncacheKey?: CacheKey;\n/\\*\\* Useful to avoid e.g. caching a successful response that contains an error in the body _/\nshouldCacheResponse: (body: T, response: Response) => boolean;\n};\ntype WithCache = {\nrun: <T>(options: WithCacheRunOptions<T>, fn: ({ addDebugData }: CacheActionFunctionParam) => T | Promise<T>) => Promise<T>;\nfetch: <T>(url: string, requestInit: RequestInit, options: WithCacheFetchOptions<T>) => Promise<{\ndata: T | null;\nresponse: Response;\n}>;\n};\ndeclare function createWithCache(cacheOptions: CreateWithCacheOptions): WithCache;\n\n/\\*\\*\n\n- This is a limited implementation of an in-memory cache.\n- It only supports the `cache-control` header.\n- It does NOT support `age` or `expires` headers.\n- @see https://developer.mozilla.org/en-US/docs/Web/API/Cache\n \\*/\n declare class InMemoryCache implements Cache {\n #private;\n constructor();\n add(request: RequestInfo): Promise<void>;\n addAll(requests: RequestInfo[]): Promise<void>;\n matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Response[]>;\n put(request: Request, response: Response): Promise<void>;\n match(request: Request): Promise<Response | undefined>;\n delete(request: Request): Promise<boolean>;\n keys(request?: Request): Promise<Request[]>;\n }\n\ntype OtherFormData = {\n[key: string]: unknown;\n};\ntype CartAttributesUpdateProps = {\naction: 'AttributesUpdateInput';\ninputs?: {\nattributes: AttributeInput[];\n} & OtherFormData;\n};\ntype CartAttributesUpdateRequire = {\naction: 'AttributesUpdateInput';\ninputs: {\nattributes: AttributeInput[];\n} & OtherFormData;\n};\ntype CartBuyerIdentityUpdateProps = {\naction: 'BuyerIdentityUpdate';\ninputs?: {\nbuyerIdentity: CartBuyerIdentityInput;\n} & OtherFormData;\n};\ntype CartBuyerIdentityUpdateRequire = {\naction: 'BuyerIdentityUpdate';\ninputs: {\nbuyerIdentity: CartBuyerIdentityInput;\n} & OtherFormData;\n};\ntype CartCreateProps = {\naction: 'Create';\ninputs?: {\ninput: CartInput;\n} & OtherFormData;\n};\ntype CartCreateRequire = {\naction: 'Create';\ninputs: {\ninput: CartInput;\n} & OtherFormData;\n};\ntype CartDiscountCodesUpdateProps = {\naction: 'DiscountCodesUpdate';\ninputs?: {\ndiscountCodes: string[];\n} & OtherFormData;\n};\ntype CartDiscountCodesUpdateRequire = {\naction: 'DiscountCodesUpdate';\ninputs: {\ndiscountCodes: string[];\n} & OtherFormData;\n};\ntype CartGiftCardCodesUpdateProps = {\naction: 'GiftCardCodesUpdate';\ninputs?: {\ngiftCardCodes: string[];\n} & OtherFormData;\n};\ntype CartGiftCardCodesUpdateRequire = {\naction: 'GiftCardCodesUpdate';\ninputs: {\ngiftCardCodes: string[];\n} & OtherFormData;\n};\ntype CartGiftCardCodesAddProps = {\naction: 'GiftCardCodesAdd';\ninputs?: {\ngiftCardCodes: string[];\n} & OtherFormData;\n};\ntype CartGiftCardCodesAddRequire = {\naction: 'GiftCardCodesAdd';\ninputs: {\ngiftCardCodes: string[];\n} & OtherFormData;\n};\ntype CartGiftCardCodesRemoveProps = {\naction: 'GiftCardCodesRemove';\ninputs?: {\ngiftCardCodes: string[];\n} & OtherFormData;\n};\ntype CartGiftCardCodesRemoveRequire = {\naction: 'GiftCardCodesRemove';\ninputs: {\ngiftCardCodes: string[];\n} & OtherFormData;\n};\ntype OptimisticCartLineInput = CartLineInput & {\nselectedVariant?: unknown;\n};\ntype CartLinesAddProps = {\naction: 'LinesAdd';\ninputs?: {\nlines: Array<OptimisticCartLineInput>;\n} & OtherFormData;\n};\ntype CartLinesAddRequire = {\naction: 'LinesAdd';\ninputs: {\nlines: Array<OptimisticCartLineInput>;\n} & OtherFormData;\n};\ntype CartLinesUpdateProps = {\naction: 'LinesUpdate';\ninputs?: {\nlines: CartLineUpdateInput[];\n} & OtherFormData;\n};\ntype CartLinesUpdateRequire = {\naction: 'LinesUpdate';\ninputs: {\nlines: CartLineUpdateInput[];\n} & OtherFormData;\n};\ntype CartLinesRemoveProps = {\naction: 'LinesRemove';\ninputs?: {\nlineIds: string[];\n} & OtherFormData;\n};\ntype CartLinesRemoveRequire = {\naction: 'LinesRemove';\ninputs: {\nlineIds: string[];\n} & OtherFormData;\n};\ntype CartNoteUpdateProps = {\naction: 'NoteUpdate';\ninputs?: {\nnote: string;\n} & OtherFormData;\n};\ntype CartNoteUpdateRequire = {\naction: 'NoteUpdate';\ninputs: {\nnote: string;\n} & OtherFormData;\n};\ntype CartSelectedDeliveryOptionsUpdateProps = {\naction: 'SelectedDeliveryOptionsUpdate';\ninputs?: {\nselectedDeliveryOptions: CartSelectedDeliveryOptionInput[];\n} & OtherFormData;\n};\ntype CartSelectedDeliveryOptionsUpdateRequire = {\naction: 'SelectedDeliveryOptionsUpdate';\ninputs: {\nselectedDeliveryOptions: CartSelectedDeliveryOptionInput[];\n} & OtherFormData;\n};\ntype CartMetafieldsSetProps = {\naction: 'MetafieldsSet';\ninputs?: {\nmetafields: MetafieldWithoutOwnerId[];\n} & OtherFormData;\n};\ntype CartMetafieldsSetRequire = {\naction: 'MetafieldsSet';\ninputs: {\nmetafields: MetafieldWithoutOwnerId[];\n} & OtherFormData;\n};\ntype CartMetafieldDeleteProps = {\naction: 'MetafieldsDelete';\ninputs?: {\nkey: Scalars['String']['input'];\n} & OtherFormData;\n};\ntype CartMetafieldDeleteRequire = {\naction: 'MetafieldsDelete';\ninputs: {\nkey: Scalars['String']['input'];\n} & OtherFormData;\n};\ntype CartDeliveryAddressesAddProps = {\naction: 'DeliveryAddressesAdd';\ninputs?: {\naddresses: Array<CartSelectableAddressInput>;\n} & OtherFormData;\n};\ntype CartDeliveryAddressesAddRequire = {\naction: 'DeliveryAddressesAdd';\ninputs: {\naddresses: Array<CartSelectableAddressInput>;\n} & OtherFormData;\n};\ntype CartDeliveryAddressesRemoveProps = {\naction: 'DeliveryAddressesRemove';\ninputs?: {\naddressIds: Array<string> | Array<Scalars['ID']['input']>;\n} & OtherFormData;\n};\ntype CartDeliveryAddressesRemoveRequire = {\naction: 'DeliveryAddressesRemove';\ninputs: {\naddressIds: Array<string> | Array<Scalars['ID']['input']>;\n} & OtherFormData;\n};\ntype CartDeliveryAddressesUpdateProps = {\naction: 'DeliveryAddressesUpdate';\ninputs?: {\naddresses: Array<CartSelectableAddressUpdateInput>;\n} & OtherFormData;\n};\ntype CartDeliveryAddressesUpdateRequire = {\naction: 'DeliveryAddressesUpdate';\ninputs: {\naddresses: Array<CartSelectableAddressUpdateInput>;\n} & OtherFormData;\n};\ntype CartDeliveryAddressesReplaceProps = {\naction: 'DeliveryAddressesReplace';\ninputs?: {\naddresses: Array<CartSelectableAddressInput>;\n} & OtherFormData;\n};\ntype CartDeliveryAddressesReplaceRequire = {\naction: 'DeliveryAddressesReplace';\ninputs: {\naddresses: Array<CartSelectableAddressInput>;\n} & OtherFormData;\n};\ntype CartCustomProps = {\naction: `Custom${string}`;\ninputs?: Record<string, unknown>;\n};\ntype CartCustomRequire = {\naction: `Custom${string}`;\ninputs: Record<string, unknown>;\n};\ntype CartFormCommonProps = {\n/**\n_ Children nodes of CartForm.\n_ Children can be a render prop that receives the fetcher.\n\\*/\nchildren: ReactNode | ((fetcher: FetcherWithComponents<any>) => ReactNode);\n/**\n_ The route to submit the form to. Defaults to the current route.\n_/\nroute?: string;\n/\\*\\*\n_ Optional key to use for the fetcher.\n_ @see https://remix.run/hooks/use-fetcher#key\n\\*/\nfetcherKey?: string;\n};\ntype CartActionInputProps = CartAttributesUpdateProps | CartBuyerIdentityUpdateProps | CartCreateProps | CartDiscountCodesUpdateProps | CartGiftCardCodesUpdateProps | CartGiftCardCodesAddProps | CartGiftCardCodesRemoveProps | CartLinesAddProps | CartLinesUpdateProps | CartLinesRemoveProps | CartNoteUpdateProps | CartSelectedDeliveryOptionsUpdateProps | CartMetafieldsSetProps | CartMetafieldDeleteProps | CartDeliveryAddressesAddProps | CartDeliveryAddressesRemoveProps | CartDeliveryAddressesUpdateProps | CartDeliveryAddressesReplaceProps | CartCustomProps;\ntype CartActionInput = CartAttributesUpdateRequire | CartBuyerIdentityUpdateRequire | CartCreateRequire | CartDiscountCodesUpdateRequire | CartGiftCardCodesUpdateRequire | CartGiftCardCodesAddRequire | CartGiftCardCodesRemoveRequire | CartLinesAddRequire | CartLinesUpdateRequire | CartLinesRemoveRequire | CartNoteUpdateRequire | CartSelectedDeliveryOptionsUpdateRequire | CartMetafieldsSetRequire | CartMetafieldDeleteRequire | CartDeliveryAddressesAddRequire | CartDeliveryAddressesRemoveRequire | CartDeliveryAddressesUpdateRequire | CartDeliveryAddressesReplaceRequire | CartCustomRequire;\ntype CartFormProps = CartActionInputProps & CartFormCommonProps;\ndeclare function CartForm({ children, action, inputs, route, fetcherKey, }: CartFormProps): JSX.Element;\ndeclare namespace CartForm {\nvar INPUT_NAME: string;\nvar ACTIONS: {\nreadonly AttributesUpdateInput: \"AttributesUpdateInput\";\nreadonly BuyerIdentityUpdate: \"BuyerIdentityUpdate\";\nreadonly Create: \"Create\";\nreadonly DiscountCodesUpdate: \"DiscountCodesUpdate\";\nreadonly GiftCardCodesUpdate: \"GiftCardCodesUpdate\";\nreadonly GiftCardCodesAdd: \"GiftCardCodesAdd\";\nreadonly GiftCardCodesRemove: \"GiftCardCodesRemove\";\nreadonly LinesAdd: \"LinesAdd\";\nreadonly LinesRemove: \"LinesRemove\";\nreadonly LinesUpdate: \"LinesUpdate\";\nreadonly NoteUpdate: \"NoteUpdate\";\nreadonly SelectedDeliveryOptionsUpdate: \"SelectedDeliveryOptionsUpdate\";\nreadonly MetafieldsSet: \"MetafieldsSet\";\nreadonly MetafieldDelete: \"MetafieldDelete\";\nreadonly DeliveryAddressesAdd: \"DeliveryAddressesAdd\";\nreadonly DeliveryAddressesUpdate: \"DeliveryAddressesUpdate\";\nreadonly DeliveryAddressesRemove: \"DeliveryAddressesRemove\";\nreadonly DeliveryAddressesReplace: \"DeliveryAddressesReplace\";\n};\nvar getFormInput: (formData: FormData) => CartActionInput;\n}\n\ndeclare const cartGetIdDefault: (requestHeaders: CrossRuntimeRequest[\"headers\"]) => () => string | undefined;\n\ntype CookieOptions = {\nmaxage?: number;\nexpires?: Date | number | string;\nsamesite?: 'Lax' | 'Strict' | 'None';\nsecure?: boolean;\nhttponly?: boolean;\ndomain?: string;\npath?: string;\n};\ndeclare const cartSetIdDefault: (cookieOptions?: CookieOptions) => (cartId: string) => Headers;\n\ntype LikeACart = {\nlines: {\nnodes: Array<unknown>;\n};\n};\ntype OptimisticCartLine<T = CartLine | CartReturn> = T extends LikeACart ? T['lines']['nodes'][number] & {\nisOptimistic?: boolean;\n} : T & {\nisOptimistic?: boolean;\n};\ntype OptimisticCart<T = CartReturn> = T extends undefined | null ? // This is the null/undefined case, where the cart has yet to be created.\n{\nisOptimistic?: boolean;\nlines: {\nnodes: Array<OptimisticCartLine>;\n};\ntotalQuantity?: number;\n} & Omit<PartialDeep<CartReturn>, 'lines'> : Omit<T, 'lines'> & {\nisOptimistic?: boolean;\nlines: {\nnodes: Array<OptimisticCartLine<T>>;\n};\ntotalQuantity?: number;\n};\n/\\*\\*\n\n- @param cart The cart object from `context.cart.get()` returned by a server loader.\n-\n- @returns A new cart object augmented with optimistic state for `lines` and `totalQuantity`. Each cart line item that is optimistically added includes an `isOptimistic` property. Also if the cart has _any_ optimistic state, a root property `isOptimistic` will be set to `true`.\n \\*/\n declare function useOptimisticCart<DefaultCart = {\n lines?: {\n nodes: Array<{\n id: string;\n quantity: number;\n merchandise: {\n is: string;\n };\n }>;\n };\n }>(cart?: DefaultCart): OptimisticCart<DefaultCart>;\n\n/\\*\\*\n\n- A custom Remix loader handler that fetches the changelog.json from GitHub.\n- It is used by the `upgrade` command inside the route `https://hydrogen.shopify.dev/changelog.json`\n \\*/\n declare function changelogHandler({ request, changelogUrl, }: {\n request: Request;\n changelogUrl?: string;\n }): Promise<Response>;\n\n/\\*\\*\n\n- Grouped export of all Hydrogen context keys for convenient access.\n- Use with React Router's context.get() pattern:\n-\n- @example\n- ```ts\n\n ```\n\n- import { hydrogenContext } from '@shopify/hydrogen';\n-\n- export async function loader({ context }) {\n- const storefront = context.get(hydrogenContext.storefront);\n- const cart = context.get(hydrogenContext.cart);\n- }\n- ```\n */\n declare const hydrogenContext: {\n readonly storefront: react_router.RouterContext<Storefront<I18nBase>>;\n readonly cart: react_router.RouterContext<HydrogenCart | HydrogenCartCustom<CustomMethodsBase>>;\n readonly customerAccount: react_router.RouterContext<CustomerAccount>;\n readonly env: react_router.RouterContext<HydrogenEnv>;\n readonly session: react_router.RouterContext<HydrogenSession<react_router.SessionData, any>>;\n readonly waitUntil: react_router.RouterContext<WaitUntil>;\n };\n ```\n\ntype HydrogenContextOptions<TSession extends HydrogenSession = HydrogenSession, TCustomMethods extends CustomMethodsBase | undefined = {}, TI18n extends I18nBase = I18nBase, TEnv extends HydrogenEnv = Env> = {\nenv: TEnv;\nrequest: CrossRuntimeRequest;\n/** An instance that implements the [Cache API](https://developer.mozilla.org/en-US/docs/Web/API/Cache) \\*/\ncache?: Cache;\n/** The `waitUntil` function is used to keep the current request/response lifecycle alive even after a response has been sent. It should be provided by your platform. _/\nwaitUntil?: WaitUntil;\n/\\*\\* Any cookie implementation. By default Hydrogen ships with cookie session storage, but you can use [another session storage](https://remix.run/docs/en/main/utils/sessions) implementation. _/\nsession: TSession;\n/** An object containing a country code and language code \\*/\ni18n?: TI18n;\n/** Whether it should print GraphQL errors automatically. Defaults to true _/\nlogErrors?: boolean | ((error?: Error) => boolean);\n/\\*\\* Storefront client overwrite options. See documentation for createStorefrontClient for more information. _/\nstorefront?: {\n/** Storefront API headers. Default values set from request header. \\*/\nheaders?: CreateStorefrontClientOptions<TI18n>['storefrontHeaders'];\n/** Override the Storefront API version for this query. _/\napiVersion?: CreateStorefrontClientOptions<TI18n>['storefrontApiVersion'];\n};\n/\\*\\* Customer Account client overwrite options. See documentation for createCustomerAccountClient for more information. _/\ncustomerAccount?: {\n/** Override the version of the API \\*/\napiVersion?: CustomerAccountOptions['customerApiVersion'];\n/** This is the route in your app that authorizes the customer after logging in. Make sure to call `customer.authorize()` within the loader on this route. It defaults to `/account/authorize`. _/\nauthUrl?: CustomerAccountOptions['authUrl'];\n/\\*\\* Use this method to overwrite the default logged-out redirect behavior. The default handler [throws a redirect](https://remix.run/docs/en/main/utils/redirect#:~:text=!session) to `/account/login` with current path as `return_to` query param. _/\ncustomAuthStatusHandler?: CustomerAccountOptions['customAuthStatusHandler'];\n/** Deprecated. `unstableB2b` is now stable. Please remove. \\*/\nunstableB2b?: CustomerAccountOptions['unstableB2b'];\n};\n/** Cart handler overwrite options. See documentation for createCartHandler for more information. _/\ncart?: {\n/\\*\\* A function that returns the cart id in the form of `gid://shopify/Cart/c1-123`. _/\ngetId?: CartHandlerOptions['getCartId'];\n/** A function that sets the cart ID. \\*/\nsetId?: CartHandlerOptions['setCartId'];\n/**\n_ The cart query fragment used by `cart.get()`.\n_ See the [example usage](/docs/api/hydrogen/utilities/createcarthandler#example-cart-fragments) in the documentation.\n_/\nqueryFragment?: CartHandlerOptions['cartQueryFragment'];\n/\\*\\*\n_ The cart mutation fragment used in most mutation requests, except for `setMetafields` and `deleteMetafield`.\n_ See the [example usage](/docs/api/hydrogen/utilities/createcarthandler#example-cart-fragments) in the documentation.\n_/\nmutateFragment?: CartHandlerOptions['cartMutateFragment'];\n/**\n_ Define custom methods or override existing methods for your cart API instance.\n_ See the [example usage](/docs/api/hydrogen/utilities/createcarthandler#example-custom-methods) in the documentation.\n\\*/\ncustomMethods?: TCustomMethods;\n};\nbuyerIdentity?: CartBuyerIdentityInput;\n};\ninterface HydrogenContext<TSession extends HydrogenSession = HydrogenSession, TCustomMethods extends CustomMethodsBase | undefined = {}, TI18n extends I18nBase = I18nBase, TEnv extends HydrogenEnv = Env> {\n/** A GraphQL client for querying the [Storefront API](https://shopify.dev/docs/api/storefront). _/\nstorefront: StorefrontClient<TI18n>['storefront'];\n/\\*\\* A GraphQL client for querying the [Customer Account API](https://shopify.dev/docs/api/customer). It also provides methods to authenticate and check if the user is logged in. _/\ncustomerAccount: CustomerAccount;\n/** A collection of utilities used to interact with the cart. \\*/\ncart: TCustomMethods extends CustomMethodsBase ? HydrogenCartCustom<TCustomMethods> : HydrogenCart;\nenv: TEnv;\n/** The `waitUntil` function is used to keep the current request/response lifecycle alive even after a response has been sent. It should be provided by your platform. _/\nwaitUntil?: WaitUntil;\n/\\*\\* Any cookie implementation. By default Hydrogen ships with cookie session storage, but you can use [another session storage](https://remix.run/docs/en/main/utils/sessions) implementation. _/\nsession: TSession;\n}\ndeclare function createHydrogenContext<TSession extends HydrogenSession, TCustomMethods extends CustomMethodsBase | undefined = {}, TI18n extends I18nBase = I18nBase, TEnv extends HydrogenEnv = Env, TAdditionalContext extends Record<string, any> = {}>(options: HydrogenContextOptions<TSession, TCustomMethods, TI18n, TEnv>, additionalContext?: TAdditionalContext): HydrogenRouterContextProvider<TSession, TCustomMethods, TI18n, TEnv> & TAdditionalContext;\n\ntype CreateRequestHandlerOptions<Context = unknown> = {\n/** React Router's server build \\*/\nbuild: ServerBuild;\n/** React Router's mode _/\nmode?: string;\n/\\*\\*\n_ Function to provide the load context for each request.\n_ It must contain Hydrogen's storefront client instance\n_ for other Hydrogen utilities to work properly.\n_/\ngetLoadContext?: (request: Request) => Promise<Context> | Context;\n/\\*\\*\n_ Whether to include the `powered-by` header in responses\n_ @default true\n_/\npoweredByHeader?: boolean;\n/**\n_ Collect tracking information from subrequests such as cookies\n_ and forward them to the browser. Disable this if you are not\n_ using Hydrogen's built-in analytics.\n_ @default true\n\\*/\ncollectTrackingInformation?: boolean;\n/**\n_ Whether to proxy standard routes such as `/api/.../graphql.json` (Storefront API).\n_ You can disable this if you are handling these routes yourself. Ensure that\n_ the proxy works if you rely on Hydrogen's built-in behaviors such as analytics.\n_ @default true\n\\*/\nproxyStandardRoutes?: boolean;\n};\n/\\*\\*\n\n- Creates a request handler for Hydrogen apps using React Router.\n \\*/\n declare function createRequestHandler<Context = unknown>({ build, mode, poweredByHeader, getLoadContext, collectTrackingInformation, proxyStandardRoutes, }: CreateRequestHandlerOptions<Context>): (request: Request) => Promise<Response>;\n\ndeclare const NonceProvider: react.Provider<string | undefined>;\ndeclare const useNonce: () => string | undefined;\ntype ContentSecurityPolicy = {\n/** A randomly generated nonce string that should be passed to any custom `script` element \\*/\nnonce: string;\n/** The content security policy header _/\nheader: string;\nNonceProvider: ComponentType<{\nchildren: ReactNode;\n}>;\n};\ntype DirectiveValues = string[] | string | boolean;\ntype CreateContentSecurityPolicy = {\ndefaultSrc?: DirectiveValues;\nscriptSrc?: DirectiveValues;\nscriptSrcElem?: DirectiveValues;\nstyleSrc?: DirectiveValues;\nimgSrc?: DirectiveValues;\nconnectSrc?: DirectiveValues;\nfontSrc?: DirectiveValues;\nobjectSrc?: DirectiveValues;\nmediaSrc?: DirectiveValues;\nframeSrc?: DirectiveValues;\nsandbox?: DirectiveValues;\nreportUri?: DirectiveValues;\nchildSrc?: DirectiveValues;\nformAction?: DirectiveValues;\nframeAncestors?: DirectiveValues;\npluginTypes?: DirectiveValues;\nbaseUri?: DirectiveValues;\nreportTo?: DirectiveValues;\nworkerSrc?: DirectiveValues;\nmanifestSrc?: DirectiveValues;\nprefetchSrc?: DirectiveValues;\nnavigateTo?: DirectiveValues;\nupgradeInsecureRequests?: boolean;\nblockAllMixedContent?: boolean;\n};\ntype ShopifyDomains = {\n/\\*\\* The production shop checkout domain url. _/\ncheckoutDomain?: string;\n/** The production shop domain url. \\*/\nstoreDomain?: string;\n};\ntype ShopProp = {\n/** Shop specific configurations \\*/\nshop?: ShopifyDomains;\n};\n/\\*\\*\n\n- @param directives - Pass custom [content security policy directives](https://content-security-policy.com/). This is important if you load content in your app from third-party domains.\n \\*/\n declare function createContentSecurityPolicy(props?: CreateContentSecurityPolicy & ShopProp): ContentSecurityPolicy;\n\ninterface HydrogenScriptProps {\n/\\*_ Wait to load the script until after the page hydrates. This prevents hydration errors for scripts that modify the DOM. Note: For security, `nonce` is not supported when using `waitForHydration`. Instead you need to add the domain of the script directly to your [Content Securitiy Policy directives](https://shopify.dev/docs/storefronts/headless/hydrogen/content-security-policy#step-3-customize-the-content-security-policy)._/\nwaitForHydration?: boolean;\n}\ninterface ScriptAttributes extends ScriptHTMLAttributes<HTMLScriptElement> {\n}\ndeclare const Script: react.ForwardRefExoticComponent<HydrogenScriptProps & ScriptAttributes & react.RefAttributes<HTMLScriptElement>>;\n\ndeclare function createCustomerAccountClient({ session, customerAccountId, shopId, customerApiVersion, request, waitUntil, authUrl, customAuthStatusHandler, logErrors, loginPath, authorizePath, defaultRedirectPath, language, }: CustomerAccountOptions): CustomerAccount;\n\ndeclare function hydrogenRoutes(currentRoutes: Array<RouteConfigEntry>): Promise<Array<RouteConfigEntry>>;\n\ndeclare function useOptimisticData<T>(identifier: string): T;\ntype OptimisticInputProps = {\n/**\n_ A unique identifier for the optimistic input. Use the same identifier in `useOptimisticData`\n_ to retrieve the optimistic data from actions.\n\\*/\nid: string;\n/**\n_ The data to be stored in the optimistic input. Use for creating an optimistic successful state\n_ of this form action.\n\\*/\ndata: Record<string, unknown>;\n};\ndeclare function OptimisticInput({ id, data }: OptimisticInputProps): react_jsx_runtime.JSX.Element;\n\ndeclare global {\ninterface Window {\n\\_\\_hydrogenHydrated?: boolean;\n}\n}\ntype Connection<NodesType> = {\nnodes: Array<NodesType>;\npageInfo: PageInfo;\n} | {\nedges: Array<{\nnode: NodesType;\n}>;\npageInfo: PageInfo;\n};\ninterface PaginationInfo<NodesType> {\n/** The paginated array of nodes. You should map over and render this array. \\*/\nnodes: Array<NodesType>;\n/** The `<NextLink>` is a helper component that makes it easy to navigate to the next page of paginated data. Alternatively you can build your own `<Link>` component: `<Link to={nextPageUrl} state={state} preventScrollReset />` _/\nNextLink: ForwardRefExoticComponent<Omit<LinkProps, 'to'> & RefAttributes<HTMLAnchorElement>>;\n/\\*\\* The `<PreviousLink>` is a helper component that makes it easy to navigate to the previous page of paginated data. Alternatively you can build your own `<Link>` component: `<Link to={previousPageUrl} state={state} preventScrollReset />` _/\nPreviousLink: ForwardRefExoticComponent<Omit<LinkProps, 'to'> & RefAttributes<HTMLAnchorElement>>;\n/** The URL to the previous page of paginated data. Use this prop to build your own `<Link>` component. \\*/\npreviousPageUrl: string;\n/** The URL to the next page of paginated data. Use this prop to build your own `<Link>` component. _/\nnextPageUrl: string;\n/\\*\\* True if the cursor has next paginated data _/\nhasNextPage: boolean;\n/** True if the cursor has previous paginated data \\*/\nhasPreviousPage: boolean;\n/** True if we are in the process of fetching another page of data _/\nisLoading: boolean;\n/\\*\\* The `state` property is important to use when building your own `<Link>` component if you want paginated data to continuously append to the page. This means that every time the user clicks \"Next page\", the next page of data will be apppended inline with the previous page. If you want the whole page to re-render with only the next page results, do not pass the `state` prop to the Remix `<Link>` component. _/\nstate: {\nnodes: Array<NodesType>;\npageInfo: {\nendCursor: Maybe<string> | undefined;\nstartCursor: Maybe<string> | undefined;\nhasPreviousPage: boolean;\n};\n};\n}\ntype PaginationProps<NodesType> = {\n/** The response from `storefront.query` for a paginated request. Make sure the query is passed pagination variables and that the query has `pageInfo` with `hasPreviousPage`, `hasNextpage`, `startCursor`, and `endCursor` defined. \\*/\nconnection: Connection<NodesType>;\n/** A render prop that includes pagination data and helpers. _/\nchildren: PaginationRenderProp<NodesType>;\n/\\*\\* A namespace for the pagination component to avoid URL param conflicts when using multiple `Pagination` components on a single page. _/\nnamespace?: string;\n};\ntype PaginationRenderProp<NodesType> = FC<PaginationInfo<NodesType>>;\n/\\*\\*\n\n-\n- The [Storefront API uses cursors](https://shopify.dev/docs/api/usage/pagination-graphql) to paginate through lists of data\n- and the \\`<Pagination />\\` component makes it easy to paginate data from the Storefront API.\n-\n- @prop connection The response from `storefront.query` for a paginated request. Make sure the query is passed pagination variables and that the query has `pageInfo` with `hasPreviousPage`, `hasNextpage`, `startCursor`, and `endCursor` defined.\n- @prop children A render prop that includes pagination data and helpers.\n \\*/\n declare function Pagination<NodesType>({ connection, children, namespace, }: PaginationProps<NodesType>): ReturnType<FC>;\n /\\*\\*\n- @param request The request object passed to your Remix loader function.\n- @param options Options for how to configure the pagination variables. Includes the ability to change how many nodes are within each page as well as a namespace to avoid URL param conflicts when using multiple `Pagination` components on a single page.\n-\n- @returns Variables to be used with the `storefront.query` function\n \\*/\n declare function getPaginationVariables(request: Request, options?: {\n pageBy: number;\n namespace?: string;\n }): {\n last: number;\n startCursor: string | null;\n } | {\n first: number;\n endCursor: string | null;\n };\n\ntype OptimisticVariant<T> = T & {\nisOptimistic?: boolean;\n};\ntype OptimisticVariantInput = PartialDeep<ProductVariant>;\ntype OptimisticProductVariants = Array<PartialDeep<ProductVariant>> | Promise<Array<PartialDeep<ProductVariant>>> | PartialDeep<ProductVariant> | Promise<PartialDeep<ProductVariant>>;\n/\\*\\*\n\n- @param selectedVariant The `selectedVariant` field queried with `variantBySelectedOptions`.\n- @param variants The available product variants for the product. This can be an array of variants, a promise that resolves to an array of variants, or an object with a `product` key that contains the variants.\n- @returns A new product object where the `selectedVariant` property is set to the variant that matches the current URL search params. If no variant is found, the original product object is returned. The `isOptimistic` property is set to `true` if the `selectedVariant` has been optimistically changed.\n \\*/\n declare function useOptimisticVariant<SelectedVariant = OptimisticVariantInput, Variants = OptimisticProductVariants>(selectedVariant: SelectedVariant, variants: Variants): OptimisticVariant<SelectedVariant>;\n\ntype VariantOption = {\nname: string;\nvalue?: string;\nvalues: Array<VariantOptionValue>;\n};\ntype PartialProductOptionValues = PartialDeep<ProductOptionValue>;\ntype PartialProductOption = PartialDeep<Omit<ProductOption, 'optionValues'> & {\noptionValues: Array<PartialProductOptionValues>;\n}>;\ntype VariantOptionValue = {\nvalue: string;\nisAvailable: boolean;\nto: string;\nsearch: string;\nisActive: boolean;\nvariant?: PartialDeep<ProductVariant, {\nrecurseIntoArrays: true;\n}>;\noptionValue: PartialProductOptionValues;\n};\n/\\*\\*\n\n- @deprecated VariantSelector will be deprecated and removed in the next major version 2025-10\n- Please use [getProductOptions](https://shopify.dev/docs/api/hydrogen/latest/utilities/getproductoptions),\n- [getSelectedProductOptions](https://shopify.dev/docs/api/hydrogen/latest/utilities/getselectedproductoptions),\n- [getAdjacentAndFirstAvailableVariants](https://shopify.dev/docs/api/hydrogen/latest/utilities/getadjacentandfirstavailablevariants) utils instead.\n- and [useSelectedOptionInUrlParam](https://shopify.dev/docs/api/hydrogen/latest/utilities/useselectedoptioninurlparam)\n- For a full implementation see the Skeleton template [routes/product.$handle.tsx](https://github.com/Shopify/hydrogen/blob/main/templates/skeleton/app/routes/products.%24handle.tsx).\n _/\n type VariantSelectorProps = {\n /\\*\\* The product handle for all of the variants _/\n handle: string;\n /** Product options from the [Storefront API](/docs/api/storefront/2026-01/objects/ProductOption). Make sure both `name` and `values` are a part of your query. \\*/\n options: Array<PartialProductOption> | undefined;\n /** Product variants from the [Storefront API](/docs/api/storefront/2026-01/objects/ProductVariant). You only need to pass this prop if you want to show product availability. If a product option combination is not found within `variants`, it is assumed to be available. Make sure to include `availableForSale` and `selectedOptions.name` and `selectedOptions.value`. _/\n variants?: PartialDeep<ProductVariantConnection> | Array<PartialDeep<ProductVariant>>;\n /\\*\\* By default all products are under /products. Use this prop to provide a custom path. _/\n productPath?: string;\n /** Should the VariantSelector wait to update until after the browser navigates to a variant. \\*/\n waitForNavigation?: boolean;\n /** An optional selected variant to use for the initial state if no URL parameters are set \\*/\n selectedVariant?: Maybe<PartialDeep<ProductVariant>>;\n children: ({ option }: {\n option: VariantOption;\n }) => ReactNode;\n };\n /\\*\\*\n- @deprecated VariantSelector will be deprecated and removed in the next major version 2025-10\n- Please use [getProductOptions](https://shopify.dev/docs/api/hydrogen/latest/utilities/getproductoptions),\n- [getSelectedProductOptions](https://shopify.dev/docs/api/hydrogen/latest/utilities/getselectedproductoptions),\n- [getAdjacentAndFirstAvailableVariants](https://shopify.dev/docs/api/hydrogen/latest/utilities/getadjacentandfirstavailablevariants) utils instead.\n- and [useSelectedOptionInUrlParam](https://shopify.dev/docs/api/hydrogen/latest/utilities/useselectedoptioninurlparam)\n- For a full implementation see the Skeleton template [routes/product.$handle.tsx](https://github.com/Shopify/hydrogen/blob/main/templates/skeleton/app/routes/products.%24handle.tsx).\n \\*/\n declare function VariantSelector({ handle, options: \\_options, variants: \\_variants, productPath, waitForNavigation, selectedVariant, children, }: VariantSelectorProps): react.FunctionComponentElement<{\n children?: ReactNode | undefined;\n }>;\n type GetSelectedProductOptions = (request: Request) => SelectedOptionInput[];\n /\\*\\*\n- Extract searchParams from a Request instance and return an array of selected options.\n- @param request - The Request instance to extract searchParams from.\n- @returns An array of selected options.\n- @example Basic usage:\n- ```tsx\n\n ```\n\n-\n- import {getSelectedProductOptions} from '@shopify/hydrogen';\n-\n- // Given a request url of `/products/product-handle?color=red&size=large`\n-\n- const selectedOptions = getSelectedProductOptions(request);\n-\n- // selectedOptions will equal:\n- // [\n- // {name: 'color', value: 'red'},\n- // {name: 'size', value: 'large'}\n- // ]\n- ```\n **/\n declare const getSelectedProductOptions: GetSelectedProductOptions;\n ```\n\n/\\*\\*\n\n- Official Hydrogen Preset for React Router 7.12.x\n-\n- Provides optimal React Router configuration for Hydrogen applications on Oxygen.\n- Enables validated performance optimizations while ensuring CLI compatibility.\n-\n- React Router 7.12.x Feature Support Matrix for Hydrogen 2025.7.0\n-\n- +----------------------------------+----------+----------------------------------+\n- | Feature | Status | Notes |\n- +----------------------------------+----------+----------------------------------+\n- | CORE CONFIGURATION |\n- +----------------------------------+----------+----------------------------------+\n- | appDirectory: 'app' | Enabled | Core application structure |\n- | buildDirectory: 'dist' | Enabled | Build output configuration |\n- | ssr: true | Enabled | Server-side rendering |\n- +----------------------------------+----------+----------------------------------+\n- | PERFORMANCE FLAGS |\n- +----------------------------------+----------+----------------------------------+\n- | v8_middleware | Enabled | Required for Hydrogen context |\n- | v8_splitRouteModules | Enabled | Route code splitting |\n- | unstable_optimizeDeps | Enabled | Build performance optimization |\n- +----------------------------------+----------+----------------------------------+\n- | ROUTE DISCOVERY |\n- +----------------------------------+----------+----------------------------------+\n- | routeDiscovery: { mode: 'lazy' } | Default | Lazy route loading |\n- | routeDiscovery: { mode: 'init' } | Allowed | Eager route loading |\n- +----------------------------------+----------+----------------------------------+\n- | UNSUPPORTED FEATURES |\n- +----------------------------------+----------+----------------------------------+\n- | basename: '/path' | Blocked | CLI infrastructure limitation |\n- | prerender: ['/routes'] | Blocked | Plugin incompatibility |\n- | serverBundles: () => {} | Blocked | Manifest incompatibility |\n- | buildEnd: () => {} | Blocked | CLI bypasses hook execution |\n- | unstable_subResourceIntegrity | Blocked | CSP nonce/hash conflict |\n- | v8_viteEnvironmentApi | Blocked | CLI fallback detection used |\n- +----------------------------------+----------+----------------------------------+\n-\n- @version 2025.7.0\n \\*/\n declare function hydrogenPreset(): Preset;\n\ndeclare const RichText: typeof RichText$1;\n\ntype GraphiQLLoader = (args: LoaderFunctionArgs) => Promise<Response>;\ndeclare const graphiqlLoader: GraphiQLLoader;\n\ntype StorefrontRedirect = {\n/** The [Storefront client](/docs/api/hydrogen/utilities/createstorefrontclient) instance \\*/\nstorefront: Storefront<I18nBase>;\n/** The [MDN Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) object that was passed to the `server.ts` request handler. _/\nrequest: Request;\n/\\*\\* The [MDN Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) object created by `handleRequest` _/\nresponse?: Response;\n/** By default the `/admin` route is redirected to the Shopify Admin page for the current storefront. Disable this redirect by passing `true`. \\*/\nnoAdminRedirect?: boolean;\n/** By default, query parameters are not used to match redirects. Set this to `true` if you'd like redirects to be query parameter sensitive \\*/\nmatchQueryParams?: boolean;\n};\n/\\*\\*\n\n- Queries the Storefront API to see if there is any redirect\n- created for the current route and performs it. Otherwise,\n- it returns the response passed in the parameters. Useful for\n- conditionally redirecting after a 404 response.\n-\n- @see {@link https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect Creating URL redirects in Shopify}\n \\*/\n declare function storefrontRedirect(options: StorefrontRedirect): Promise<Response>;\n\ninterface SeoConfig {\n/**\n_ The `title` HTML element defines the document's title that is shown in a browser's title bar or a page's tab. It\n_ only contains text; tags within the element are ignored. \\*\n_ @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title\n_/\ntitle?: Maybe<string>;\n/**\n_ Generate the title from a template that includes a `%s` placeholder for the title.\n_\n_ @example\n_ `js\n * {\n * title: 'My Page',\n * titleTemplate: 'My Site - %s',\n * }\n * `\n_/\ntitleTemplate?: Maybe<string> | null;\n/\\*\\*\n_ The media associated with the given page (images, videos, etc). If you pass a string, it will be used as the\n_ `og:image` meta tag. If you pass an object or an array of objects, that will be used to generate `og:<type of\n_ media>`meta tags. The`url`property should be the URL of the media. The`height`and`width`properties are\n * optional and should be the height and width of the media. The`altText`property is optional and should be a\n * description of the media.\n *\n * @example\n * ```js\n * {\n * media: [\n * {\n * url: 'https://example.com/image.jpg',\n * type: 'image',\n * height: '400',\n * width: '400',\n * altText: 'A custom snowboard with an alpine color pallet.',\n * }\n * ]\n * }\n * ```\n *\n */\n media?: Maybe<string> | Partial<SeoMedia> | (Partial<SeoMedia> | Maybe<string>)[];\n /**\n * The description of the page. This is used in the`name=\"description\"`meta tag as well as the`og:description`meta\n * tag.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta\n */\n description?: Maybe<string>;\n /**\n * The canonical URL of the page. This is used to tell search engines which URL is the canonical version of a page.\n * This is useful when you have multiple URLs that point to the same page. The value here will be used in the\n *`rel=\"canonical\"`link tag as well as the`og:url`meta tag.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link\n */\n url?: Maybe<string>;\n /**\n * The handle is used to generate the`twitter:site`and`twitter:creator`meta tags. Include the`@`symbol in the\n * handle.\n *\n * @example\n * ```js\n * {\n * handle: '@shopify'\n * }\n * ```\n */\n handle?: Maybe<string>;\n /**\n * The`jsonLd`property is used to generate the`application/ld+json`script tag. This is used to provide structured\n * data to search engines. The value should be an object that conforms to the schema.org spec. The`type`property\n * should be the type of schema you are using. The`type`property is required and should be one of the following:\n *\n * -`Product` * -`ItemList` * -`Organization` * -`WebSite` * -`WebPage` * -`BlogPosting` * -`Thing` *\n * The value is validated via [schema-dts](https://www.npmjs.com/package/schema-dts)\n *\n * @example\n * ```js\n * {\n * jsonLd: {\n * '@context': 'https://schema.org',\n * '@type': 'Product',\n * name: 'My Product',\n * image: 'https://hydrogen.shop/image.jpg',\n * description: 'A product that is great',\n * sku: '12345',\n * mpn: '12345',\n * brand: {\n * '@type': 'Thing',\n * name: 'My Brand',\n * },\n * aggregateRating: {\n * '@type': 'AggregateRating',\n * ratingValue: '4.5',\n * reviewCount: '100',\n * },\n * offers: {\n * '@type': 'Offer',\n * priceCurrency: 'USD',\n * price: '100',\n * priceValidUntil: '2020-11-05',\n * itemCondition: 'https://schema.org/NewCondition',\n * availability: 'https://schema.org/InStock',\n * seller: {\n * '@type': 'Organization',\n * name: 'My Brand',\n * },\n * },\n * }\n * }\n * ```\n *\n * @see https://schema.org/docs/schemas.html\n * @see https://developers.google.com/search/docs/guides/intro-structured-data\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script\n *\n */\n jsonLd?: WithContext<Thing> | WithContext<Thing>[];\n /**\n * The`alternates`property is used to specify the language and geographical targeting when you have multiple\n * versions of the same page in different languages. The`url`property tells search engines about these variations\n * and helps them to serve the correct version to their users.\n *\n * @example\n * ```js\n * {\n * alternates: [\n * {\n * language: 'en-US',\n * url: 'https://hydrogen.shop/en-us',\n * default: true,\n * },\n * {\n * language: 'fr-CA',\n * url: 'https://hydrogen.shop/fr-ca',\n * },\n * ]\n * }\n * ```\n *\n * @see https://support.google.com/webmasters/answer/189077?hl=en\n */\n alternates?: LanguageAlternate | LanguageAlternate[];\n /**\n * The`robots` property is used to specify the robots meta tag. This is used to tell search engines which pages\n_ should be indexed and which should not.\n_\n_ @see https://developers.google.com/search/reference/robots_meta_tag\n_/\nrobots?: RobotsOptions;\n}\n/\\*\\*\n\n- @see https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag\n _/\n interface RobotsOptions {\n /\\*\\*\n _ Set the maximum size of an image preview for this page in a search results Can be one of the following: \\*\n _ - `none` - No image preview is to be shown.\n _ - `standard` - A default image preview may be shown.\n _ - `large` - A larger image preview, up to the width of the viewport, may be shown.\n _\n _ If no value is specified a default image preview size is used.\n _/\n maxImagePreview?: 'none' | 'standard' | 'large';\n /**\n _ A number representing the maximum of amount characters to use as a textual snippet for a search result. This value\n _ can also be set to one of the following special values: \\*\n _ - 0 - No snippet is to be shown. Equivalent to nosnippet.\n _ - 1 - The Search engine will choose the snippet length that it believes is most effective to help users discover\n _ your content and direct users to your site\n _ - -1 - No limit on the number of characters that can be shown in the snippet.\n \\*/\n maxSnippet?: number;\n /**\n _ The maximum number of seconds for videos on this page to show in search results. This value can also be set to one\n _ of the following special values: \\*\n _ - 0 - A static image may be used with the `maxImagePreview` setting.\n _ - 1 - There is no limit to the size of the video preview. \\*\n _ This applies to all forms of search results (at Google: web search, Google Images, Google Videos, Discover,\n _ Assistant).\n _/\n maxVideoPreview?: number;\n /\\*\\*\n _ Do not show a cached link in search results.\n _/\n noArchive?: boolean;\n /\\*\\*\n _ Do not follow the links on this page. \\*\n _ @see https://developers.google.com/search/docs/advanced/guidelines/qualify-outbound-links\n _/\n noFollow?: boolean;\n /**\n _ Do not index images on this page.\n _/\n noImageIndex?: boolean;\n /**\n _ Do not show this page, media, or resource in search results.\n _/\n noIndex?: boolean;\n /**\n _ Do not show a text snippet or video preview in the search results for this page.\n _/\n noSnippet?: boolean;\n /**\n _ Do not offer translation of this page in search results.\n _/\n noTranslate?: boolean;\n /**\n _ Do not show this page in search results after the specified date/time.\n _/\n unavailableAfter?: string;\n }\n interface LanguageAlternate {\n /**\n _ Language code for the alternate page. This is used to generate the hreflang meta tag property.\n _/\n language: string;\n /**\n _ Whether the alternate page is the default page. This will add the `x-default` attribution to the language code.\n _/\n default?: boolean;\n /**\n _ The url of the alternate page. This is used to generate the hreflang meta tag property.\n _/\n url: string;\n }\n type SeoMedia = {\n /**\n _ Used to generate og:<type of media> meta tag\n _/\n type: 'image' | 'video' | 'audio';\n /**\n _ The url value populates both url and secure_url and is used to infer the og:<type of media>:type meta tag.\n _/\n url: Maybe<string> | undefined;\n /**\n _ The height in pixels of the media. This is used to generate the og:<type of media>:height meta tag.\n _/\n height: Maybe<number> | undefined;\n /**\n _ The width in pixels of the media. This is used to generate the og:<type of media>:width meta tag.\n _/\n width: Maybe<number> | undefined;\n /\\*\\*\n _ The alt text for the media. This is used to generate the og:<type of media>:alt meta tag.\n _/\n altText: Maybe<string> | undefined;\n };\n\ntype GetSeoMetaReturn = ReturnType<MetaFunction>;\ntype Optional<T> = T | null | undefined;\n/\\*\\*\n\n- Generate a Remix meta array from one or more SEO configuration objects. This is useful to pass SEO configuration for the parent route(s) and the current route. Similar to `Object.assign()`, each property is overwritten based on the object order. The exception is `jsonLd`, which is preserved so that each route has it's own independent jsonLd meta data.\n \\*/\n declare function getSeoMeta(...seoInputs: Optional<SeoConfig>[]): GetSeoMetaReturn;\n\ninterface SeoHandleFunction<Loader extends LoaderFunction | unknown = unknown> {\n(args: {\ndata: Loader extends LoaderFunction ? Awaited<ReturnType<Loader>> : unknown;\nid: string;\nparams: Params;\npathname: Location['pathname'];\nsearch: Location['search'];\nhash: Location['hash'];\nkey: string;\n}): Partial<SeoConfig>;\n}\ninterface SeoProps {\n/** Enable debug mode that prints SEO properties for route in the console \\*/\ndebug?: boolean;\n}\n/**\n\n- @deprecated - use `getSeoMeta` instead\n \\*/\n declare function Seo({ debug }: SeoProps): react.FunctionComponentElement<{\n children?: react.ReactNode | undefined;\n }>;\n\ndeclare function ShopPayButton(props: ComponentProps<typeof ShopPayButton$1>): react_jsx_runtime.JSX.Element;\n\ntype SITEMAP*INDEX_TYPE = 'pages' | 'products' | 'collections' | 'blogs' | 'articles' | 'metaObjects';\ninterface SitemapIndexOptions {\n/** The Storefront API Client from Hydrogen \\*/\nstorefront: Storefront;\n/** A Remix Request object */\nrequest: Request;\n/\\*\\* The types of pages to include in the sitemap index. \\_/\ntypes?: SITEMAP_INDEX_TYPE[];\n/** Add a URL to a custom child sitemap \\*/\ncustomChildSitemaps?: string[];\n}\n/**\n\n- Generate a sitemap index that links to separate sitemaps for each resource type. Returns a standard Response object.\n _/\n declare function getSitemapIndex(options: SitemapIndexOptions): Promise<Response>;\n interface GetSiteMapOptions {\n /\\*\\* The params object from Remix _/\n params: LoaderFunctionArgs['params'];\n /** The Storefront API Client from Hydrogen \\*/\n storefront: Storefront;\n /** A Remix Request object _/\n request: Request;\n /\\*\\* A function that produces a canonical url for a resource. It is called multiple times for each locale supported by the app. _/\n getLink: (options: {\n type: string | SITEMAP*INDEX_TYPE;\n baseUrl: string;\n handle?: string;\n locale?: string;\n }) => string;\n /** An array of locales to generate alternate tags \\*/\n locales?: string[];\n /** Optionally customize the changefreq property for each URL */\n getChangeFreq?: (options: {\n type: string | SITEMAP*INDEX_TYPE;\n handle: string;\n }) => string;\n /\\*\\* If the sitemap has no links, fallback to rendering a link to the homepage. This prevents errors in Google's search console. Defaults to `/`. */\n noItemsFallback?: string;\n }\n /\\*\\*\n- Generate a sitemap for a specific resource type.\n \\*/\n declare function getSitemap(options: GetSiteMapOptions): Promise<Response>;\n\nexport { Analytics, AnalyticsEvent, CacheCustom, type CacheKey, CacheLong, CacheNone, CacheShort, type CachingStrategy, type CartActionInput, CartForm, type CartLineUpdatePayload, type CartQueryDataReturn, type CartQueryOptions, type CartQueryReturn, type CartReturn, type CartUpdatePayload, type CartViewPayload, type CollectionViewPayload, type ConsentStatus, type CookieOptions, type CreateStorefrontClientForDocs, type CreateStorefrontClientOptions, type CustomEventMap$1 as CustomEventMap, type CustomerAccount, type CustomerAccountMutations, type CustomerAccountQueries, type CustomerPrivacy$1 as CustomerPrivacy, type CustomerPrivacyApiProps, type CustomerPrivacyConsentConfig, type HydrogenCart, type HydrogenCartCustom, type HydrogenContext, type HydrogenEnv, type HydrogenRouterContextProvider, type HydrogenSession, type HydrogenSessionData, type I18nBase, InMemoryCache, type MetafieldWithoutOwnerId, type NoStoreStrategy, NonceProvider, type OptimisticCart, type OptimisticCartLine, type OptimisticCartLineInput, OptimisticInput, type PageViewPayload, Pagination, type PrivacyBanner$1 as PrivacyBanner, type ProductViewPayload, RichText, Script, type SearchViewPayload, Seo, type SeoConfig, type SeoHandleFunction, type SetConsentHeadlessParams, type ShopAnalytics, ShopPayButton, type Storefront, type StorefrontApiErrors, type StorefrontClient, type StorefrontForDoc, type StorefrontMutationOptionsForDocs, type StorefrontMutations, type StorefrontQueries, type StorefrontQueryOptionsForDocs, type VariantOption, type VariantOptionValue, VariantSelector, type VisitorConsent, type VisitorConsentCollected, type WithCache, cartAttributesUpdateDefault, cartBuyerIdentityUpdateDefault, cartCreateDefault, cartDiscountCodesUpdateDefault, cartGetDefault, cartGetIdDefault, cartGiftCardCodesAddDefault, cartGiftCardCodesRemoveDefault, cartGiftCardCodesUpdateDefault, cartLinesAddDefault, cartLinesRemoveDefault, cartLinesUpdateDefault, cartMetafieldDeleteDefault, cartMetafieldsSetDefault, cartNoteUpdateDefault, cartSelectedDeliveryOptionsUpdateDefault, cartSetIdDefault, changelogHandler, createCartHandler, createContentSecurityPolicy, createCustomerAccountClient, createHydrogenContext, createRequestHandler, createStorefrontClient, createWithCache, formatAPIResult, generateCacheControlHeader, getPaginationVariables, getSelectedProductOptions, getSeoMeta, getShopAnalytics, getSitemap, getSitemapIndex, graphiqlLoader, hydrogenContext, hydrogenPreset, hydrogenRoutes, storefrontRedirect, useAnalytics, useCustomerPrivacy, useNonce, useOptimisticCart, useOptimisticData, useOptimisticVariant };\n\n```\n\n```\n---\n\n## ⚠️ MANDATORY: Search Before Writing Code\n\nSearch the vector store to get the detailed context you need: working examples, field and type definitions, valid values, and API-specific patterns. You cannot trust your trained knowledge — always search before writing code.\n\n```\nscripts/search_docs.mjs \"<component tag name>\" --version API_VERSION\n```\n\nSearch for the **component tag name**, not the full user prompt.\n\nFor example, if the user asks about cart UI:\n```\nscripts/search_docs.mjs \"CartForm component\" --version API_VERSION\n```\n\n\n> **Version:** If you know the developer's API version, pass `--version` with a supported value such as `2026-04` or `2026-01`. For API versions configured in a project, use the project's API configuration; omit to get the latest stable version.\n## ⚠️ MANDATORY: Validate Before Returning Code\n\nYou MUST run `scripts/validate.mjs` before returning any generated code to the user.\n\n```\nscripts/validate.mjs --code '...' [--version <api-version>]\n```\n\n> **Version:** If you know the developer's API version, pass `--version` with a supported value such as `2026-04` or `2026-01`. For API versions configured in a project, use the project's API configuration; omit to get the latest stable version. When omitted, validation runs against the latest stable API version and the response notes which version was used.\n\n\n**When validation fails, follow this loop:**\n1. Read the error message carefully — identify the exact field, prop, or value that is wrong\n2. If the error references a named type or says a value is not assignable, search for the correct values:\n ```\n scripts/search_docs.mjs \"<type or prop name>\"\n ```\n3. Fix exactly the reported error using what the search returns\n4. Run `scripts/validate.mjs` again\n5. Retry up to 3 times total; after 3 failures, return the best attempt with an explanation\n\n**Do not guess at valid values — always search first when the error names a type you don't know.**\n"
}SHA-256: 86f85c72da2a6e4fdd855e7c349f32b78af63db9676c34fcebe01d62ae467e1f