/** * Parameter normalization for Exa search. * * Adapted from najibninaba/pi-exa-search's params.ts to: * - reuse our existing `EffectiveExaParams` type * - validate Exa-specific search types + recency filters * - normalize domain filters (with `-` exclude prefix) * - normalize date bounds + reject recencyFilter+date mixing * * Pure functions, no I/O. Trivially unit-testable. */ import { type EffectiveExaParams, type ExaRecencyFilter, type ExaSearchType } from "../types.js"; export declare const DEFAULT_NUM_RESULTS = 5; export declare const MAX_NUM_RESULTS = 10; export declare const DEFAULT_HIGHLIGHTS_MAX_CHARACTERS = 800; export declare const MIN_HIGHLIGHTS_MAX_CHARACTERS = 200; export declare const MAX_HIGHLIGHTS_MAX_CHARACTERS = 4000; export type RawExaParams = { query?: string; queries?: string[]; numResults?: number; searchType?: ExaSearchType; recencyFilter?: ExaRecencyFilter; startPublishedDate?: string; endPublishedDate?: string; domainFilter?: string[]; includeDomains?: string[]; excludeDomains?: string[]; highlightsMaxCharacters?: number; includeContent?: boolean; }; export declare function normalizeExaParams(raw: RawExaParams, options?: { now?: () => Date; }): EffectiveExaParams; //# sourceMappingURL=params.d.ts.map