// Generated by dts-bundle-generator v9.5.1 import { HttpClient } from 'effect/http'; import * as Layer from 'effect/Layer'; export declare namespace createAjaxCartClient { type Options = { debug?: boolean; /** * Replaces the HTTP layer. * * The default is `AjaxClient.layer`, which is `fetch`. Overriding it is * the only way to exercise this client without a network - the * alternative was spying on the `layer` export, which tests how the * module is wired rather than what it sends. */ httpClient?: Layer.Layer; }; type RequestOptions = { signal?: AbortSignal; headers?: Record; }; } /** * Validates the input cart object against the defined CartOutput schema. * * @param cart - The unknown cart object to be validated. * @returns The validated cart, or throws if it does not match the schema. */ export declare const validateCart: (cart: unknown) => { 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; }[]; }; /** * Creates an instance of the Ajax Cart API client. * * Each method resolves to the decoded cart and **rejects** on failure. There is * no `{ data, error }` envelope: a non-200 rejects with * `AjaxResponseError`, and transport, encode and decode failures reject with * Effect's own tagged errors. * * @param options - Optional settings. * @param options.debug - Enables request logging. Default `false`. * * @example * ```typescript * const api = createAjaxCartApi({ debug: true }); * * try { * const cart = await api.add({ items: [{ id: 123, quantity: 2 }] }); * console.log("Cart updated:", cart); * } catch (error) { * if (error instanceof AjaxResponseError) { * console.error(error.status, error.route); * } * } * ``` */ export declare const createAjaxCartApi: ({ debug, httpClient, }?: createAjaxCartClient.Options) => { /** * Adds items to the cart. * * @param input - The items to add. * @param options - An `AbortSignal` to cancel with, and custom headers. * @returns A Promise resolving to the updated cart. */ 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, options?: createAjaxCartClient.RequestOptions) => Promise<{ 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; }[]; }>; /** * Updates the quantity, properties or selling plan of one cart line. * * @param input - The line to change, by `id` or `line`. * @param options - An `AbortSignal` to cancel with, and custom headers. * @returns A Promise resolving to the updated cart. */ 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, options?: createAjaxCartClient.RequestOptions) => Promise<{ 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; }[]; }>; /** * Removes everything from the cart. * * @param input - Carries the `sections` to re-render. * @param options - An `AbortSignal` to cancel with, and custom headers. * @returns A Promise resolving to the emptied cart. */ clear: (input?: { readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | undefined, options?: createAjaxCartClient.RequestOptions) => Promise<{ 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; }[]; }>; /** * Reads the current cart. * * @param input - Carries the `sections` to re-render. * @param options - An `AbortSignal` to cancel with, and custom headers. * @returns A Promise resolving to the cart. */ get: (input?: { readonly sections?: readonly string[] | undefined; readonly sections_url?: string | undefined; } | undefined, options?: createAjaxCartClient.RequestOptions) => Promise<{ 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; }[]; }>; /** * Updates cart-level data - notes, attributes, discount codes. * * @param input - The cart-level changes to apply. * @param options - An `AbortSignal` to cancel with, and custom headers. * @returns A Promise resolving to the updated cart. */ 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, options?: createAjaxCartClient.RequestOptions) => Promise<{ 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; }[]; }>; }; export {};