export interface RawSearchResult {
    url: string;
    title: string;
    snippet: string;
    engine: string;
    [k: string]: unknown;
}
export interface DiscardedResult<T extends RawLike = RawSearchResult> {
    result: T;
    reason: 'invalid_url' | 'language_mismatch' | 'engine_batch_dropped';
}
export interface FilterOptions {
    target: string;
    dropThreshold: number;
}
export interface FilterResult<T extends RawLike = RawSearchResult> {
    results: T[];
    discarded: DiscardedResult<T>[];
    warnings: string[];
}
interface RawLike {
    url: string;
    title: string;
    snippet: string;
    engine: string;
}
export declare function filterByLanguage<T extends RawLike>(results: T[], opts: FilterOptions): FilterResult<T>;
export declare function filterByLanguageWithFallback<T extends RawLike>(results: T[], opts: FilterOptions): FilterResult<T>;
export {};
//# sourceMappingURL=language-filter.d.ts.map