export declare const PHRASE_BOOST_WEIGHT = 1.5; export declare const EXACT_IDENTIFIER_PROTECTION_BONUS: number; export declare function scoreBigramRerankCandidate(params: { baseScore: number; minimumBaseScore: number; maximumBaseScore: number; matchedBigrams: number; queryBigramCount: number; exactIdentifierMatch?: boolean; }): number; /** * Ordered phrase tokens deliberately do not expand compound identifiers. The * lexical tokenizer may index both `Retry-After` and its parts for recall, but * phrase matching must never invent adjacency between those expanded parts. */ export declare function surfacePhraseTokens(value: string): string[]; export declare function orderedWordBigrams(tokens: readonly string[]): string[]; export interface OrderedPhraseScore { matchedBigrams: number; queryBigrams: number; } /** * A deterministic, positive-only ordered-word signal across independent text * segments. Query grams and matches are sets: a title/passage repetition must * not manufacture more phrase evidence than the query contains, and segment * boundaries must not invent adjacency. */ export declare function scoreOrderedPhraseSegments(queryBigrams: readonly string[], passageTexts: readonly string[]): OrderedPhraseScore; /** A deterministic, positive-only ordered-word signal for one passage. */ export declare function scoreOrderedPhrase(queryBigrams: readonly string[], passageText: string): OrderedPhraseScore; //# sourceMappingURL=phrase-scoring.d.ts.map