import type { Database as DatabaseType } from 'better-sqlite3'; export type SearchScope = 'all' | 'topic' | 'subtree'; export type SearchType = 'all' | 'topics' | 'messages'; export interface SearchOptions { scope?: SearchScope; topicId?: number; includeArchived?: boolean; limit?: number; } export interface TopicSearchResult { type: 'topic'; topicId: number; topicName: string; topicPath: string; excerpt: string; rank: number; } export interface MessageSearchResult { type: 'message'; messageId: number; topicId: number; topicName: string; topicPath: string; authorName: string; createdAt: string; excerpt: string; rank: number; } export interface SearchResponse { query: string; topics: TopicSearchResult[]; messages: MessageSearchResult[]; } export declare function searchAll(db: DatabaseType, query: string, type?: SearchType, options?: SearchOptions): SearchResponse; export declare function searchTopics(db: DatabaseType, query: string, options?: SearchOptions): TopicSearchResult[]; export declare function searchMessages(db: DatabaseType, query: string, options?: SearchOptions): MessageSearchResult[]; //# sourceMappingURL=search.d.ts.map