import React from 'react'; /** * Shared § 6.2 rules editor for the three admin surfaces (settings card, * product override, category override). The whole config lives in local * state and is written into the form as ONE headless registered path via * setValue — the form body then carries a real nested object with real * booleans/numbers (the § 5.3 AJV schemas are strict; a stringified copy or * string leaves would fail the save), and reordering never fights * react-hook-form over index-shifted field names. */ export interface RulesEditorRule { type: 'same_category' | 'same_collection' | 'same_attribute_values'; enabled: boolean; attributeCodes?: string[]; scope?: 'same_category' | 'same_collection'; } export interface RulesEditorConfig { enabled: boolean; rules: RulesEditorRule[]; priceBand?: { enabled: boolean; percent?: number; }; fallbackToBestsellers?: boolean; } export declare function RelatedRulesEditor({ name, initial, attributes }: { /** Form path the config object is written to (e.g. `relatedProductsRules`). */ name: string; initial?: RulesEditorConfig | null; /** Select-type attributes available for the attribute-values rule. */ attributes: Array<{ attributeCode: string; attributeName: string; }>; }): React.JSX.Element;