export type { SearchClient, SearchResult, SearchQueryResponse, IndexableDocument, SearchOptions, } from './types'; export type { FuzzySearchOptions, FuzzyMatch } from './fuzzy'; export { processDocumentForIndexing } from './indexer/utils'; import type { FuzzyMatch } from './fuzzy'; import type { SearchResult, SearchQueryResponse } from './types'; interface SearchQuery { AND: string[]; } interface PaginationOptions { limit?: number; cursor?: string; } interface PageOptions { PAGE?: { SIZE: number; NUMBER: number; }; } interface SearchIndexResponse { RESULT: SearchResult[]; RESULT_LENGTH: number; FUZZY_MATCHES?: Record; NEXT_CURSOR?: string | null; PREV_CURSOR?: string | null; } export declare const queryToSearchIndexQuery: (query: string, stopwordLanguages?: string[]) => SearchQuery; export declare const optionsToSearchIndexOptions: (options?: PaginationOptions) => PageOptions; export declare const parseSearchIndexResponse: (data: SearchIndexResponse, options?: PaginationOptions) => SearchQueryResponse;