export interface SeedAttribute { attributeId: number; code: string; sortOrder: number; /** The seed data marked it `is_variant`, so it MAY be a variant axis. */ isVariant: boolean; } /** Every attribute the seed data defines, by code, with what the DB gave it. */ export declare function loadSeedAttributes(attributesData: any[]): Promise>; /** * The axes a variant group actually needs. * * An attribute becomes an axis when the seed data marks it `is_variant` AND the * group's members genuinely differ on it. Declaring intent alone is not enough: * a fashion set marks both colour and size, but a shirt that only comes in * white still varies on size only, and an axis nothing varies on gives the * storefront a picker with one choice. * * Order follows the attribute's own `sort_order`, so `attribute_one` is stable * across runs instead of depending on object key order. */ export declare function axesFor(members: any[], attributes: Map, groupName: string): SeedAttribute[]; /** * Create the variant groups the product data asks for, reusing any that exist. * * Which attributes drive a group is decided by the seed data, not by this file: * mark an attribute `is_variant` in `attributes.json` and it becomes eligible. * Colour used to be hardcoded as the only axis, which made size unusable as a * variant for a fashion catalogue and left every other industry with no way to * express its own. */ export declare function createVariantGroups(productsData: any[], demoAttributeGroupId: number, attributes: Map): Promise>; /** * Resolve attribute values from text to option IDs for select type attributes */ export declare function resolveAttributeOptions(attributes: any[]): Promise;