import type { RdfSearchCardinalityEstimate, RdfTextChunkInput, RdfTextIndexLike, RdfTextIndexStats, RdfTextRebuildStatus, RdfTextRebuildStatusInput, RdfTextSearchOptions, RdfTextSearchResult, RdfTextSourceListOptions, RdfTextSourceMetadata, RdfTextSourceInput, RdfTextTermDocumentFrequency } from './types'; export type PostgresRdfTextSearchBackend = 'posting' | 'pg-native-fts' | 'auto'; export interface PostgresRdfTextIndexOptions { driver?: 'pglite' | 'pg'; dataDir?: string; connectionString?: string; host?: string; port?: number; database?: string; user?: string; password?: string; pool?: any; autoOpen?: boolean; maxSourceBytes?: number; maxChunksPerSource?: number; textSearchBackend?: PostgresRdfTextSearchBackend; } export declare class PostgresRdfTextIndex implements RdfTextIndexLike { private readonly options; private executor; private pglite; private pgPool; private sharedPoolConfig; private initializing; constructor(options?: PostgresRdfTextIndexOptions); open(): Promise; close(): Promise; clear(): Promise; schemaVersion(): Promise; private readSchemaVersion; sourceMetadata(source: string): Promise; listSources(options?: RdfTextSourceListOptions): Promise; recordRebuildStatus(input: RdfTextRebuildStatusInput): Promise; rebuildStatus(source: string): Promise; indexText(source: RdfTextSourceInput, text: string, chunks?: RdfTextChunkInput[]): Promise; moveSource(oldSource: string, next: RdfTextSourceInput): Promise; deleteSource(source: string): Promise; search(options: RdfTextSearchOptions): Promise; listSourceChunks(sourceKey: string): Promise; estimateSearchCardinality(options: RdfTextSearchOptions): Promise; private searchNativeFts; private estimateNativeFtsSearchCardinality; stats(): Promise; termDocumentFrequency(limit?: number): Promise; private openInternal; private initializeSchema; private initializeNativeFtsSchema; private validateSchema; private validateNativeFtsSchema; private nativeFtsEnabled; private canUseNativeFts; private upsertSource; private estimateDatabaseBytes; private entitiesForChunk; private entitiesForChunks; private requireExecutor; }