// Generated by dts-bundle-generator v9.5.1 import { ICustomElement } from 'component-register'; export type CorrectComponentOptions = { element: HTMLElement & ICustomElement; }; export type CorrectComponentType = (props: T, options: CorrectComponentOptions) => unknown; export type Variant = { id: string | number; options: string[]; }; export type Product = { id: string | number; variants: Variant[]; selected_or_first_available_variant: Variant; }; export type Props = { product?: Product; isProductPage?: boolean; }; declare const Name = "product-info"; declare const Component: CorrectComponentType; type Props$1 = {}; declare const Name$1 = "product-variant-render"; declare const Component$1: CorrectComponentType; type Props$2 = { selectedOptions: string[]; }; declare const Name$2 = "product-options"; declare const Component$2: CorrectComponentType; type Props$3 = { position: number; name: string; inputType: "radio" | "select"; }; declare const Name$3 = "product-option-group"; declare const Component$3: CorrectComponentType; type Props$4 = { target: string | null; preventDefault?: boolean; }; declare const Name$4 = "product-variant-input"; declare const Component$4: CorrectComponentType; export declare const useProduct: (element: HTMLElement & ICustomElement) => readonly [ { product: Product; }, { readonly variant: { readonly update: (variantId: string | number) => void; }; } ]; export declare const getProductContext: (element: Element) => readonly [ { product: Product; }, { readonly variant: { readonly update: (variantId: string | number) => void; }; } ]; export declare const withProductElementContext: (target: string | import("solid-js").Accessor | import("solid-js").Accessor<() => Element>, dependencies: import("solid-js").Accessor | undefined, cb: (context: readonly [ { product: Product; }, { readonly variant: { readonly update: (variantId: string | number) => void; }; } ], dependencies: D) => void | (() => void)) => void; export declare const useProductOptions: (element: HTMLElement & ICustomElement) => readonly [ { selectedOptions: string[]; }, { readonly options: { readonly update: (options: string[]) => void; readonly updateOption: (option: string, index: number) => void; }; } ]; export declare const getProductOptionsContext: (element: Element) => readonly [ { selectedOptions: string[]; }, { readonly options: { readonly update: (options: string[]) => void; readonly updateOption: (option: string, index: number) => void; }; } ]; export declare const withProductOptionsElementContext: (target: string | import("solid-js").Accessor | import("solid-js").Accessor<() => Element>, dependencies: import("solid-js").Accessor | undefined, cb: (context: readonly [ { selectedOptions: string[]; }, { readonly options: { readonly update: (options: string[]) => void; readonly updateOption: (option: string, index: number) => void; }; } ], dependencies: D) => void | (() => void)) => void; export type ProductInfoProps = Props; export type ProductOptionsProps = Props$2; export type ProductOptionGroupProps = Props$3; export type ProductVariantInputProps = ProductVariantInput.Props; export type ProductVariantRenderProps = Props$1; declare namespace ProductVariantInput { export { Component$4 as Component, Name$4 as Name, Props$4 as Props }; } export {};