import { default as React } from 'react';
/**
 * Set variants state variable from the doenet generatedVariantCallback result.
 *
 * @param x - The object passed to the generatedVariantCallback
 * @param variants - The current variants state variable
 * @param setVariants - The setState function for the variants state variable
 */
export declare function setVariantsFromCallback(x: any, variants: {
    index: number;
    numVariants: number;
    allPossibleVariants: string[];
}, setVariants: React.Dispatch<React.SetStateAction<{
    index: number;
    numVariants: number;
    allPossibleVariants: string[];
}>>): void;
//# sourceMappingURL=variants.d.ts.map