import { TProductType } from '../../types'; import { TProductFilterProps } from '../../../refine'; export declare const useBackorders: () => ({ label: string; value: "no"; } | { label: string; value: "yes"; } | { label: string; value: "notify"; })[]; export declare const useProductStockStatus: () => ({ label: string; value: "instock"; color: string; } | { label: string; value: "outofstock"; color: string; } | { label: string; value: "onbackorder"; color: string; })[]; export declare const useProductDateFields: () => { label: string; value: string; }[]; export declare const useProductTypes: () => ({ value: "simple"; label: string; color: string; } | { value: "grouped"; label: string; color: string; } | { value: "external"; label: string; color: string; } | { value: "variable"; label: string; color: string; } | { value: "variation"; label: string; color: string; } | { value: "subscription"; label: string; color: string; } | { value: "variable-subscription"; label: string; color: string; } | { value: "subscription_variation"; label: string; color: string; })[]; export declare const useProductCatalogVisibilities: () => ({ value: "hidden"; label: string; color: string; } | { value: "visible"; label: string; color: string; } | { value: "search"; label: string; color: string; } | { value: "catalog"; label: string; color: string; })[]; export declare const useProductFilterLabels: (label?: string) => { s?: string | undefined; sku?: string | undefined; type?: string | undefined; product_category_id?: string | undefined; product_tag_id?: string | undefined; product_brand_id?: string | undefined; status?: string | undefined; featured?: string | undefined; downloadable?: string | undefined; virtual?: string | undefined; sold_individually?: string | undefined; backorders?: string | undefined; stock_status?: string | undefined; date_created?: string | undefined; is_course?: string | undefined; price_range?: string | undefined; author?: string | undefined; include?: string | undefined; }; export declare const BACKORDERS: ({ label: string; value: "no"; } | { label: string; value: "yes"; } | { label: string; value: "notify"; })[]; export declare const PRODUCT_STOCK_STATUS: ({ label: string; value: "instock"; color: string; } | { label: string; value: "outofstock"; color: string; } | { label: string; value: "onbackorder"; color: string; })[]; export declare const PRODUCT_DATE_FIELDS: { label: string; value: string; }[]; /** * 商品類型 * @see https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/src/Enums/ProductType.php * @deprecated 由後端提供 * */ export declare const PRODUCT_TYPES: ({ value: "simple"; label: string; color: string; } | { value: "grouped"; label: string; color: string; } | { value: "external"; label: string; color: string; } | { value: "variable"; label: string; color: string; } | { value: "variation"; label: string; color: string; } | { value: "subscription"; label: string; color: string; } | { value: "variable-subscription"; label: string; color: string; } | { value: "subscription_variation"; label: string; color: string; })[]; export declare const PRODUCT_CATALOG_VISIBILITIES: ({ value: "hidden"; label: string; color: string; } | { value: "visible"; label: string; color: string; } | { value: "search"; label: string; color: string; } | { value: "catalog"; label: string; color: string; })[]; /** Label 對應 */ export declare const getProductFilterLabels: (label?: string) => { s?: string | undefined; sku?: string | undefined; type?: string | undefined; product_category_id?: string | undefined; product_tag_id?: string | undefined; product_brand_id?: string | undefined; status?: string | undefined; featured?: string | undefined; downloadable?: string | undefined; virtual?: string | undefined; sold_individually?: string | undefined; backorders?: string | undefined; stock_status?: string | undefined; date_created?: string | undefined; is_course?: string | undefined; price_range?: string | undefined; author?: string | undefined; include?: string | undefined; }; export declare const productKeyLabelMapper: (key: keyof TProductFilterProps, label?: string) => string; /** * 判斷是否為可變商品 */ export declare const isVariable: (type: string | undefined) => boolean | undefined; /** * 判斷是否為商品變體 * @deprecated 使用 isVariation 替代 */ export declare const getIsVariation: (productType: TProductType) => boolean; /** 判斷是否為商品變體 */ export declare const isVariation: (type: string | undefined) => boolean; /** 判斷是否為商品變體 */ export declare const isSubscription: (type: string) => boolean;