import type { CommerceTypes } from '../../../../libs/fscommerce'; /** * Options to specify details of how to get Product Details from DQL. */ export interface UseProductDetailHookOptions { /** * In the rare case of multiple, nested ProductZones, this index allows you to select which zone * to pull from. Similar to array indexing, `0` would be the first encountered ProductZone when * ascending up the component tree; `1` would be the next one. Conversely, `-1` would be the last * one, and `-2` would be the second highest. The default is 0, and most of the time you won't * need to set this. * */ index: number; } /** * Get Product Details according to the current DQL context * * @param options Options to determine details of the DQL context to try to obtain * @return A Product object if one was found in DQL context; undefined if not. */ export declare const useProductDetail: (options?: UseProductDetailHookOptions) => CommerceTypes.Product | undefined;