/**
 * useExperiment Hook
 *
 * Fetches experiment variant assignments from the backend and caches them.
 * Auto-injects ab_test_id and ab_variant into SearchProvider context.
 *
 * Usage:
 *   const { experimentId, variantId, variantConfig, isLoading } = useExperiment('search-ranking-v2');
 */
export interface ExperimentAssignment {
    experiment_id: string;
    variant_id: string;
    variant_config?: Record<string, unknown>;
}
export interface UseExperimentReturn {
    experimentId: string | null;
    variantId: string | null;
    variantConfig: Record<string, unknown> | null;
    isLoading: boolean;
    error: Error | null;
    /** All active assignments for the current user */
    allAssignments: ExperimentAssignment[];
}
export declare const useExperiment: (experimentId?: string) => UseExperimentReturn;
//# sourceMappingURL=useExperiment.d.ts.map