import type { SearchOptions, SearchResult, DbOperation } from './types.ts'; /** * Search documents by path and title with template/slot usage ranking * * This function searches documents based on: * - Case-insensitive LIKE pattern matching on path and title * - Orders results by template/slot usage frequency (most used first) * - Falls back to creation date for documents not used as templates/slots * - Searches only current records (not drafts) * * The search prioritizes documents that are frequently used as templates or slots * in the system, making it easier to discover commonly reused components. * * @param client Database client * @param options Search options (query, limit, published) * @returns Array of SearchResult objects (DocumentCore + title) matching the search query */ export declare const search: DbOperation<[SearchOptions], SearchResult[]>; //# sourceMappingURL=search.d.ts.map