// Generated by dts-bundle-generator v9.5.1 import * as Cause from 'effect/Cause'; import * as Context from 'effect/Context'; import * as Data from 'effect/Data'; import * as Effect from 'effect/Effect'; import * as Layer from 'effect/Layer'; import * as LogLevel from 'effect/LogLevel'; import * as Pipeable from 'effect/Pipeable'; import * as Schema from 'effect/Schema'; declare const Input: Schema.Struct<{ readonly sections: Schema.optional, never, never>>; readonly sections_url: Schema.optional; }>; export type UniqueKeys = T extends `${infer K},${infer Rest}` ? K | UniqueKeys : T; declare function makeResponseSchema(input: T): Schema.$Record[]>, Schema.NullOr, Schema.String, never, never>>>; declare const Origins: Context.Reference; declare const layer$1: (origins: readonly string[]) => Layer.Layer; export interface IShopifyRoutes { readonly account_addresses_url: string; readonly account_login_url: string; readonly account_logout_url: string; readonly account_recover_url: string; readonly account_register_url: string; readonly account_url: string; readonly all_products_collection_url: string; readonly product_url: string; readonly products_url: string; readonly cart_add_url: string; readonly cart_change_url: string; readonly cart_clear_url: string; readonly cart_update_url: string; readonly cart_url: string; readonly collections_url: string; readonly predictive_search_url: string; readonly product_recommendations_url: string; readonly root_url: string; readonly search_url: string; readonly storefront_login_url: string; } export interface IStorefrontClientConfig { readonly accessToken: string; readonly shopName: string; apiVersion: string; } declare const Defaults: IShopifyRoutes; declare class ShopifyRoutes extends Data.Class { constructor(); } declare const make: () => ShopifyRoutes; declare const Routes: Context.Reference; declare const layer$2: (routes: IShopifyRoutes) => Layer.Layer; declare class StorefrontClientConfig extends Data.Class { constructor(); } declare const make$1: () => StorefrontClientConfig; declare const Origin: Context.Reference; declare const layer$3: (origin: string) => Layer.Layer; declare namespace Sections { export { Input, makeResponseSchema }; } declare namespace StorefrontOrigin { export { Origin, layer$3 as layer$3 }; } declare namespace AllowedRouteOrigins { export { Origins, layer$1 as layer$1 }; } declare namespace ShopifyRoutes$1 { export { Defaults, Routes, ShopifyRoutes, layer$2 as layer$2, make }; } declare namespace StorefrontClientConfig$1 { export { StorefrontClientConfig, make$1 as make$1 }; } declare namespace Window$1 { export { AllowedRouteOrigins, ShopifyRoutes$1 as ShopifyRoutes$1, StorefrontClientConfig$1 as StorefrontClientConfig$1, StorefrontOrigin }; } declare namespace Ajax { export { Sections, Window$1 as Window$1 }; } /** * Every route's input extends Shopify's `sections` pair, decoded. * * Constraining the descriptor on this is what lets {@link execute} read * `decodedInput.sections` and {@link withSections} write it without a cast. */ export type AjaxInput = typeof Ajax.Sections.Input.Type; /** * The same input, encoded — which is what a descriptor actually carries. * * Worth stating plainly because the two differ in a way that bites: * `sections` decodes from `ReadonlyArray` to a comma-joined `string`, * so the encoded side is the array. A descriptor holds encoded input, so * {@link withSections} takes the array form. */ export type AjaxInputEncoded = typeof Ajax.Sections.Input.Encoded; declare const METHODS_BY_URL: { readonly root_url: "get"; readonly products_url: "get"; readonly product_url: "get"; readonly predictive_search_url: "get"; readonly product_recommendations_url: "get"; readonly cart_add_url: "post"; readonly cart_update_url: "post"; readonly cart_url: "get"; readonly cart_change_url: "post"; readonly cart_clear_url: "post"; }; export type ValidAjaxRoutes = keyof typeof METHODS_BY_URL; declare const TypeIdSymbol: unique symbol; export type TypeId = typeof TypeIdSymbol; /** * A description of a Shopify Ajax request, before it is run. * * The reason this type exists at all: headers, sections and input are consumed * *inside* the request effect, so there is nothing to modify once that effect * has been constructed. `pipe(getCart(), withHeaders(...))` can only work if * the thing in the pipe is a description rather than an `Effect`. {@link execute} * is where the description becomes one. */ export interface AjaxRequest extends Pipeable.Pipeable { readonly [TypeIdSymbol]: TypeId; readonly routeName: ValidAjaxRoutes; /** * A storefront page to send the request to, in place of * `routes[routeName]`. * * Only {@link renderSections} sets it: the Section Rendering API answers on * any page, and the page is what the sections render against. It goes * through the same origin check a route does, and it is not part of * `input`, so it never ends up in the query string. */ readonly path?: string; /** * The `Accept` header, when it should not be `application/json`. * * Only {@link renderSections} sets it. `/search/suggest` reads `Accept` * to choose its answer: asked for JSON it returns its search results and * drops `?sections=`, so a JSON request there can never get the rendered * section back. */ readonly accept?: string; readonly inputSchema: Schema.Codec; readonly outputSchema: (sections?: string) => Schema.Codec; readonly input: I; readonly headers: Readonly>; } export type CartAddInput = Schema.Codec.Encoded; declare const CartAddInput: Schema.Struct<{ readonly items: Schema.$Array, Schema.String ]>; readonly quantity: Schema.withDecodingDefaultType; readonly properties: Schema.withDecodingDefaultType>, never>; readonly selling_plan: Schema.optional, Schema.String ]>>; }>>; readonly sections: Schema.optional, never, never>>; readonly sections_url: Schema.optional; }>; export type CartUpdateInput = Schema.Codec.Encoded; declare const CartUpdateInput: Schema.Struct<{ readonly updates: Schema.optional, Schema.$Array ]>>; readonly note: Schema.optional>; readonly attributes: Schema.optional>>; readonly discount: Schema.optional, never, never>>; readonly sections: Schema.optional, never, never>>; readonly sections_url: Schema.optional; }>; export type CartChangeInput = Schema.Codec.Encoded; declare const CartChangeInput: Schema.Union; readonly properties: Schema.optional>>; readonly selling_plan: Schema.optional, Schema.String ]>>>; readonly sections: Schema.optional, never, never>>; readonly sections_url: Schema.optional; }>, Schema.Struct<{ readonly line: Schema.Number; readonly quantity: Schema.optional; readonly properties: Schema.optional>>; readonly selling_plan: Schema.optional, Schema.String ]>>>; readonly sections: Schema.optional, never, never>>; readonly sections_url: Schema.optional; }> ]>; export type CartClearInput = Schema.Codec.Encoded; declare const CartClearInput: Schema.Struct<{ readonly sections: Schema.optional, never, never>>; readonly sections_url: Schema.optional; }>; export type CartGetInput = Schema.Codec.Encoded; declare const CartGetInput: Schema.Struct<{ readonly sections: Schema.optional, never, never>>; readonly sections_url: Schema.optional; }>; export type AddInput = CartAddInput; export type ChangeInput = CartChangeInput; export type ClearInput = CartClearInput; export type GetInput = CartGetInput; export type UpdateInput = CartUpdateInput; export declare namespace add { type Input = AddInput; } export declare const add: (input?: { readonly items: readonly { readonly id: string | number; readonly selling_plan?: string | number | undefined; readonly properties?: { readonly [x: string]: string | number | boolean | null; } | undefined; readonly quantity?: number | undefined; }[]; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | undefined) => AjaxRequest<{ readonly items: readonly { readonly id: string | number; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly selling_plan?: string | number | undefined; }[]; readonly sections?: string | undefined; readonly sections_url?: string | undefined; }, { readonly items: readonly { readonly id: string | number; readonly selling_plan?: string | number | undefined; readonly properties?: { readonly [x: string]: string | number | boolean | null; } | undefined; readonly quantity?: number | undefined; }[]; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; }, never, { readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly selling_plan_allocation: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly id: string | number; readonly name: string; readonly description: string | null; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly recurring_deliveries: boolean; readonly fixed_selling_plan: boolean; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; }; } | null; readonly variant_options: readonly string[]; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly has_components: boolean; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; }; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_properties: { readonly [x: string]: string | number | boolean | null; }; readonly private_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_properties: { readonly [x: string]: string | number | boolean | null; }; readonly public_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly unit_price?: number | undefined; }[]; }, { readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; } | null; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly selling_plan_allocation?: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly description: string | null; readonly name: string; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; readonly id: string | number; readonly recurring_deliveries?: boolean | undefined; readonly fixed_selling_plan?: boolean | undefined; }; } | null | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly variant_options?: readonly string[] | undefined; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly has_components?: boolean | undefined; readonly unit_price?: number | undefined; }[]; }, never>; export declare namespace change { type Input = ChangeInput; } export declare const change: (input?: { readonly id: string; readonly selling_plan?: string | number | null | undefined; readonly properties?: { readonly [x: string]: string | null; } | undefined; readonly quantity?: number | undefined; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | { readonly line: number; readonly selling_plan?: string | number | null | undefined; readonly properties?: { readonly [x: string]: string | null; } | undefined; readonly quantity?: number | undefined; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | undefined) => AjaxRequest<{ readonly id: string; readonly selling_plan?: string | number | null | undefined; readonly properties?: { readonly [x: string]: string | null; } | undefined; readonly quantity?: number | undefined; readonly sections?: string | undefined; readonly sections_url?: string | undefined; } | { readonly line: number; readonly selling_plan?: string | number | null | undefined; readonly properties?: { readonly [x: string]: string | null; } | undefined; readonly quantity?: number | undefined; readonly sections?: string | undefined; readonly sections_url?: string | undefined; }, { readonly id: string; readonly selling_plan?: string | number | null | undefined; readonly properties?: { readonly [x: string]: string | null; } | undefined; readonly quantity?: number | undefined; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | { readonly line: number; readonly selling_plan?: string | number | null | undefined; readonly properties?: { readonly [x: string]: string | null; } | undefined; readonly quantity?: number | undefined; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; }, never, { readonly token: string; readonly note: string | null; readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly discount_codes: readonly { readonly code: string; readonly applicable: boolean; }[]; readonly original_total_price: number; readonly total_price: number; readonly total_discount: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly selling_plan_allocation: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly id: string | number; readonly name: string; readonly description: string | null; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly recurring_deliveries: boolean; readonly fixed_selling_plan: boolean; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; }; } | null; readonly variant_options: readonly string[]; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly has_components: boolean; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; }; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_properties: { readonly [x: string]: string | number | boolean | null; }; readonly private_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_properties: { readonly [x: string]: string | number | boolean | null; }; readonly public_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly unit_price?: number | undefined; }[]; readonly requires_shipping: boolean; readonly currency: string; readonly items_subtotal_price: number; readonly cart_level_discount_applications: readonly { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }[]; readonly attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly private_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly public_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; }, { readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly total_discount: number; readonly requires_shipping: boolean; readonly note: string | null; readonly cart_level_discount_applications: readonly ({ readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; } | { readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; })[]; readonly token: string; readonly original_total_price: number; readonly total_price: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; } | null; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly selling_plan_allocation?: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly description: string | null; readonly name: string; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; readonly id: string | number; readonly recurring_deliveries?: boolean | undefined; readonly fixed_selling_plan?: boolean | undefined; }; } | null | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly variant_options?: readonly string[] | undefined; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly has_components?: boolean | undefined; readonly unit_price?: number | undefined; }[]; readonly currency: string; readonly items_subtotal_price: number; readonly items_added: readonly { readonly product_id: number; readonly variant_id: number; readonly id: string; readonly image: string | null; readonly price: string; readonly presentment_price: number; readonly quantity: number; readonly title: string; readonly product_title: string; readonly variant_title: string | null; readonly vendor: string; readonly product_type: string; readonly sku: string | null; readonly url: string; readonly untranslated_product_title: string; readonly untranslated_variant_title: string | null; readonly view_key: string; }[]; readonly items_removed: readonly { readonly product_id: number; readonly variant_id: number; readonly id: string; readonly image: string | null; readonly price: string; readonly presentment_price: number; readonly quantity: number; readonly title: string; readonly product_title: string; readonly variant_title: string | null; readonly vendor: string; readonly product_type: string; readonly sku: string | null; readonly url: string; readonly untranslated_product_title: string; readonly untranslated_variant_title: string | null; readonly view_key: string; }[]; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly discount_codes?: readonly { readonly code: string; readonly applicable: boolean; }[] | undefined; }, never>; export declare namespace clear { type Input = ClearInput; } export declare const clear: (input?: { readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | undefined) => AjaxRequest<{ readonly sections?: string | undefined; readonly sections_url?: string | undefined; }, { readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; }, never, { readonly token: string; readonly note: string | null; readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly discount_codes: readonly { readonly code: string; readonly applicable: boolean; }[]; readonly original_total_price: number; readonly total_price: number; readonly total_discount: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly selling_plan_allocation: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly id: string | number; readonly name: string; readonly description: string | null; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly recurring_deliveries: boolean; readonly fixed_selling_plan: boolean; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; }; } | null; readonly variant_options: readonly string[]; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly has_components: boolean; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; }; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_properties: { readonly [x: string]: string | number | boolean | null; }; readonly private_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_properties: { readonly [x: string]: string | number | boolean | null; }; readonly public_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly unit_price?: number | undefined; }[]; readonly requires_shipping: boolean; readonly currency: string; readonly items_subtotal_price: number; readonly cart_level_discount_applications: readonly { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }[]; readonly attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly private_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly public_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; }, { readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly total_discount: number; readonly requires_shipping: boolean; readonly note: string | null; readonly cart_level_discount_applications: readonly ({ readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; } | { readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; })[]; readonly token: string; readonly original_total_price: number; readonly total_price: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; } | null; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly selling_plan_allocation?: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly description: string | null; readonly name: string; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; readonly id: string | number; readonly recurring_deliveries?: boolean | undefined; readonly fixed_selling_plan?: boolean | undefined; }; } | null | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly variant_options?: readonly string[] | undefined; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly has_components?: boolean | undefined; readonly unit_price?: number | undefined; }[]; readonly currency: string; readonly items_subtotal_price: number; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly discount_codes?: readonly { readonly code: string; readonly applicable: boolean; }[] | undefined; }, never>; export declare namespace get { type Input = GetInput; } export declare const get: (input?: { readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | undefined) => AjaxRequest<{ readonly sections?: string | undefined; readonly sections_url?: string | undefined; }, { readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; }, never, { readonly token: string; readonly note: string | null; readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly discount_codes: readonly { readonly code: string; readonly applicable: boolean; }[]; readonly original_total_price: number; readonly total_price: number; readonly total_discount: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly selling_plan_allocation: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly id: string | number; readonly name: string; readonly description: string | null; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly recurring_deliveries: boolean; readonly fixed_selling_plan: boolean; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; }; } | null; readonly variant_options: readonly string[]; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly has_components: boolean; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; }; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_properties: { readonly [x: string]: string | number | boolean | null; }; readonly private_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_properties: { readonly [x: string]: string | number | boolean | null; }; readonly public_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly unit_price?: number | undefined; }[]; readonly requires_shipping: boolean; readonly currency: string; readonly items_subtotal_price: number; readonly cart_level_discount_applications: readonly { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }[]; readonly attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly private_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly public_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; }, { readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly total_discount: number; readonly requires_shipping: boolean; readonly note: string | null; readonly cart_level_discount_applications: readonly ({ readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; } | { readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; })[]; readonly token: string; readonly original_total_price: number; readonly total_price: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; } | null; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly selling_plan_allocation?: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly description: string | null; readonly name: string; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; readonly id: string | number; readonly recurring_deliveries?: boolean | undefined; readonly fixed_selling_plan?: boolean | undefined; }; } | null | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly variant_options?: readonly string[] | undefined; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly has_components?: boolean | undefined; readonly unit_price?: number | undefined; }[]; readonly currency: string; readonly items_subtotal_price: number; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly discount_codes?: readonly { readonly code: string; readonly applicable: boolean; }[] | undefined; }, never>; export declare namespace update { type Input = UpdateInput; } export declare const update: (input?: { readonly attributes?: { readonly [x: string]: string | number | boolean | null; } | undefined; readonly discount?: readonly string[] | undefined; readonly note?: string | null | undefined; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; readonly updates?: readonly number[] | { readonly [x: string]: number; } | undefined; } | undefined) => AjaxRequest<{ readonly attributes?: { readonly [x: string]: string | number | boolean | null; } | undefined; readonly discount?: string | undefined; readonly note?: string | null | undefined; readonly sections?: string | undefined; readonly sections_url?: string | undefined; readonly updates?: readonly number[] | { readonly [x: string]: number; } | undefined; }, { readonly attributes?: { readonly [x: string]: string | number | boolean | null; } | undefined; readonly discount?: readonly string[] | undefined; readonly note?: string | null | undefined; readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; readonly updates?: readonly number[] | { readonly [x: string]: number; } | undefined; }, never, { readonly token: string; readonly note: string | null; readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly discount_codes: readonly { readonly code: string; readonly applicable: boolean; }[]; readonly original_total_price: number; readonly total_price: number; readonly total_discount: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly selling_plan_allocation: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly id: string | number; readonly name: string; readonly description: string | null; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly recurring_deliveries: boolean; readonly fixed_selling_plan: boolean; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; }; } | null; readonly variant_options: readonly string[]; readonly discounts: readonly { readonly amount: number; readonly title: string; }[]; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly has_components: boolean; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; }; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_properties: { readonly [x: string]: string | number | boolean | null; }; readonly private_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_properties: { readonly [x: string]: string | number | boolean | null; }; readonly public_properties_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly unit_price?: number | undefined; }[]; readonly requires_shipping: boolean; readonly currency: string; readonly items_subtotal_price: number; readonly cart_level_discount_applications: readonly { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }[]; readonly attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly private_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly private_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; readonly public_attributes: { readonly [x: string]: string | number | boolean | null; }; readonly public_attributes_array: readonly { readonly key: string; readonly value: string | number | boolean | null; }[]; }, { readonly attributes: { readonly [x: string]: string | number | boolean | null; }; readonly total_discount: number; readonly requires_shipping: boolean; readonly note: string | null; readonly cart_level_discount_applications: readonly ({ readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; } | { readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; })[]; readonly token: string; readonly original_total_price: number; readonly total_price: number; readonly total_weight: number; readonly item_count: number; readonly items: readonly { readonly title: string; readonly key: string; readonly url: string; readonly image: string | null; readonly price: number; readonly id: string | number; readonly sku: string | null; readonly product_type: string | null; readonly product_description: string | null; readonly variant_title: string | null; readonly options_with_values: readonly { readonly name: string; readonly value: string; }[]; readonly line_level_discount_allocations: readonly { readonly amount: number; readonly discount_application: { readonly target_selection: "all" | "entitled" | "explicit"; readonly target_type: "line_item" | "shipping_line"; readonly title: string; readonly total_allocated_amount: number; readonly type: "" | "automatic" | "discount_code" | "manual" | "script"; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage"; readonly description: string | null; }; }[]; readonly properties: { readonly [x: string]: string | number | boolean | null; }; readonly quantity: number; readonly variant_id: string | number; readonly original_price: number; readonly discounted_price: number; readonly line_price: number; readonly original_line_price: number; readonly total_discount: number; readonly grams: number; readonly vendor: string; readonly taxable: boolean; readonly product_id: string | number; readonly product_has_only_default_variant: boolean; readonly gift_card: boolean; readonly final_line_price: number; readonly final_price: number; readonly featured_image: { readonly aspect_ratio: number | null; readonly alt: string | null; readonly height: number | null; readonly url: string | null; readonly width: number | null; } | null; readonly handle: string; readonly requires_shipping: boolean; readonly product_title: string; readonly line_level_total_discount: number; readonly quantity_rule?: { readonly min: number; readonly max: number | null; readonly increment: number; } | undefined; readonly selling_plan_allocation?: { readonly price_adjustments: readonly { readonly position: number; readonly price: number; }[]; readonly price: number; readonly compare_at_price: number; readonly per_delivery_price: number; readonly selling_plan: { readonly description: string | null; readonly name: string; readonly options: readonly { readonly name: string; readonly position: number; readonly value: string; }[]; readonly price_adjustments: readonly { readonly order_count: number | null; readonly position: number; readonly value: string | number; readonly value_type: "fixed_amount" | "percentage" | "price"; }[]; readonly id: string | number; readonly recurring_deliveries?: boolean | undefined; readonly fixed_selling_plan?: boolean | undefined; }; } | null | undefined; readonly unit_price_measurement?: { readonly measured_type: "volume" | "weight" | "dimension"; readonly quantity_unit: string; readonly quantity_value: number; readonly reference_unit: string; readonly reference_value: number; } | undefined; readonly variant_options?: readonly string[] | undefined; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly has_components?: boolean | undefined; readonly unit_price?: number | undefined; }[]; readonly currency: string; readonly items_subtotal_price: number; readonly items_changelog: { readonly added: readonly { readonly variant_id: number; readonly quantity: number; }[]; }; readonly discounts?: readonly { readonly amount: number; readonly title: string; }[] | undefined; readonly discount_codes?: readonly { readonly code: string; readonly applicable: boolean; }[] | undefined; }, never>; export {};