type SortDirection = 'asc' | 'desc';
export interface SortConfig<K extends string = string> {
    key: K;
    direction: SortDirection;
}
export declare function scoreRelevance(text: unknown, query: unknown): number;
export declare function sortByRelevance<T>(items: T[], query: string, getSearchFields: (item: T) => unknown[]): T[];
export declare function sortByColumn<T>(items: T[], sortConfig: SortConfig | null, getValue: (item: T, key: string) => string | number): T[];
export declare function toggleSort<K extends string>(current: SortConfig<K> | null, key: K): SortConfig<K>;
export {};
//# sourceMappingURL=search.d.ts.map