import { HasMetafieldsIdentifier } from '../gql'; import { HasMetafieldQueryRoot } from '../types/fetcher'; import { PartialRecord } from '../utils/type-helper'; import { ProductVariant } from '../types/product'; export declare function isObjEmpty(obj?: Record): boolean; export declare function atobID(id: string): string | undefined; export declare function btoaID(id: string, type?: 'ProductVariant' | 'Product'): string; export declare const getThemeLocale: (locale: string) => string; /** * 生成 metafieldIdentifiers 查询参数 * { * product: { namespace: 'product', key: 'img' }, * variant: { namespace: 'variant', key: 'img' } * } * => * { * productMetafieldIdentifiers: [{ namespace: 'combo', key: 'product' }] * variantMetafieldIdentifiers: [{ namespace: 'combo', key: 'variant' }] * } */ export declare function constructMetafieldIdentifiersQueryParams(metafieldIdentifiers?: PartialRecord, metafieldsNamespace?: string): PartialRecord<`${T}MetafieldIdentifiers`, HasMetafieldsIdentifier[]>; export declare const referralAttributes: () => { key: string; value: string; }[]; export declare const getNormalCoupon: ({ variant }: { variant?: ProductVariant; }) => any; //# sourceMappingURL=helper.d.ts.map