import { QueryCorrection, WordCorrection } from '../../../api/search/search/query-corrections.js';
import { InsightEngine } from '../../../app/insight-engine/insight-engine.js';
import { DidYouMean, DidYouMeanState, DidYouMeanProps, DidYouMeanOptions } from '../../core/did-you-mean/headless-core-did-you-mean.js';
export type { QueryCorrection, WordCorrection, DidYouMean, DidYouMeanState, DidYouMeanProps, DidYouMeanOptions, };
/**
 * The insight DidYouMean controller is responsible for handling query corrections.
 * When a query returns no result but finds a possible query correction, the controller either suggests the correction or
 * automatically triggers a new query with the suggested term.
 *
 * @param engine - The headless engine.
 * @param props - The configurable `DidYouMean` properties.
 *
 * @group Controllers
 * @category DidYouMean
 */
export declare function buildDidYouMean(engine: InsightEngine, props?: DidYouMeanProps): DidYouMean;
