import type { CslItem } from "../../core/csl-json/types.js"; import type { ILibrary } from "../../core/library-interface.js"; import { type PaginationOptions, type SearchSortField, type SortOrder } from "../pagination/index.js"; /** * Sort options for search (includes relevance) */ export interface SearchSortOptions { sort?: SearchSortField; order?: SortOrder; } /** * Options for searchReferences operation */ export interface SearchOperationOptions extends PaginationOptions, SearchSortOptions { /** Search query string */ query: string; } /** * Result of searchReferences operation */ export interface SearchResult { /** Raw CslItem array */ items: CslItem[]; /** Total count before pagination */ total: number; /** Applied limit (0 if unlimited) */ limit: number; /** Applied offset */ offset: number; /** Next page offset, null if no more results */ nextOffset: number | null; } /** * Search references in the library and return raw CslItem[] results. * * @param library - The library to search in * @param options - Search query and pagination options * @returns Raw CslItem[] with pagination metadata */ export declare function searchReferences(library: ILibrary, options: SearchOperationOptions): Promise; //# sourceMappingURL=search.d.ts.map