export interface ErrorScorable { title: string; url: string; snippet: string; } /** * Extract atomic error tokens from a query by shape. Returns the tokens in * their surface form (uppercase), de-duplicated, order-preserving. Empty when * the query carries no atomic error token. */ export declare function extractErrorTokens(query: string): string[]; /** * True when the query carries at least one atomic error token. This is the * error-intent gate: it fires ONLY on genuine error strings, never on ordinary * acronym or single-uppercase-word queries. */ export declare function hasErrorIntent(query: string): boolean; /** * Per-result survival predicate: true when any atomic error token appears in * the result's title, snippet, or URL (case-insensitive). A result that * mentions none of the tokens is off-target junk for an error-intent query. */ export declare function resultMatchesErrorToken(result: ErrorScorable, tokens: string[]): boolean; //# sourceMappingURL=error-intent.d.ts.map