/** * Confidence-Aware Disambiguation * * When parse confidence is borderline (between low and high thresholds), * generates a disambiguation request with alternative interpretations * instead of blindly accepting or rejecting. */ import type { SemanticNode } from '../core/types'; import type { DisambiguationRequest } from './types'; /** * Check whether a confidence score falls in the disambiguation range. * * @returns true if the confidence is ambiguous (between low and high thresholds) */ export declare function needsDisambiguation(confidence: number, low?: number, high?: number): boolean; /** * Build a disambiguation request from candidate interpretations. * * @param input - The original ambiguous input * @param candidates - Alternative interpretations with confidence scores */ export declare function buildDisambiguation(input: string, candidates: ReadonlyArray<{ action: string; confidence: number; node: SemanticNode; description?: string; }>): DisambiguationRequest; //# sourceMappingURL=confidence-gate.d.ts.map