import type { Rdf3xCardinalityEstimate, Rdf3xCountResult, Rdf3xIndexStats, Rdf3xJoinOptions, Rdf3xJoinScanResult, Rdf3xPatternKey, Rdf3xRebuildResult, Rdf3xIndexOptions, Rdf3xTriplePattern, Rdf3xTripleScanOptions, Rdf3xTripleScanResult, RdfIndexSpaceObject, RdfQuadJoinCountOptions, RdfQuadJoinGroupAggregateOptions, RdfQuadJoinPattern, RdfQuadTupleConstraintSource } from './types'; interface Rdf3xRebuildOptions { mode?: 'full' | 'auto'; } export declare class Rdf3xIndex { private readonly options; private readonly sqliteRuntime; private db; private dictionary; constructor(options: Rdf3xIndexOptions); open(): void; close(): void; clear(): void; rebuildFromCurrentQuads(options?: Rdf3xRebuildOptions): Rdf3xRebuildResult; private rebuildAllProjectionTables; private refreshDirtyProjectionTables; factsDataVersion(): number; isSyncedWithCurrentQuads(): boolean; scan(pattern: Rdf3xTriplePattern, options?: Rdf3xTripleScanOptions): Rdf3xTripleScanResult; scanWithTupleConstraints(pattern: Rdf3xTriplePattern, tupleValues: RdfQuadTupleConstraintSource, options?: Rdf3xTripleScanOptions): Rdf3xTripleScanResult; countDistinct(pattern: Rdf3xTriplePattern, distinctKey: Rdf3xPatternKey): Rdf3xCountResult; private scanInternal; private compileDistinctCountSql; private compileMembershipDistinctCountSql; joinPatterns(patterns: RdfQuadJoinPattern[], options?: Rdf3xJoinOptions): Rdf3xJoinScanResult; countJoinPatterns(patterns: RdfQuadJoinPattern[], options: RdfQuadJoinCountOptions): Rdf3xJoinScanResult; aggregateJoinPatterns(patterns: RdfQuadJoinPattern[], options: RdfQuadJoinCountOptions): Rdf3xJoinScanResult; groupCountJoinPatterns(patterns: RdfQuadJoinPattern[], options: RdfQuadJoinGroupAggregateOptions): Rdf3xJoinScanResult; groupAggregateJoinPatterns(patterns: RdfQuadJoinPattern[], options: RdfQuadJoinGroupAggregateOptions): Rdf3xJoinScanResult; private aggregateJoinPatternsInternal; private groupAggregateJoinPatternsInternal; estimateCardinality(pattern: Rdf3xTriplePattern): Rdf3xCardinalityEstimate; stats(): Rdf3xIndexStats; collectSpaceObjects(): RdfIndexSpaceObject[]; private initializeSchema; private initializeDirtyTrackingTriggers; private dropMaterializedFactCopies; private dropLegacyRowidTables; private clearRdf3xTables; private clearDirtyProjectionTables; private prepareSchemaVersion; private ensureMetadataTable; private dropRdf3xSchema; private currentFactsDataVersion; private setFactsDataVersion; private setMetadataValue; private dirtyProjectionStats; private countDirtyProjectionQuads; private rebuildPairProjection; private refreshDirtyPairProjection; private rebuildTermProjection; private refreshDirtyTermProjection; private rebuildGraphProjection; private refreshDirtyGraphProjection; private compileScanSql; private compileMembershipScanSql; private compileJoinPatterns; private joinSourceSql; private membershipJoinSourceSql; private canUseIndexOnlyJoin; private buildMergeJoinPlan; private joinSourceColumnRef; private buildTupleConstraintJoin; private buildJoinValuesJoins; private populateJoinValuesTable; private joinValueColumnName; private populateTupleConstraintTable; private termIdForTupleConstraint; private tupleColumnName; private tupleColumnRef; private buildJoinOrderClause; private buildJoinAggregateColumn; private buildGroupAggregateHavingClause; private havingSqlOperator; private buildGroupAggregateOrderScope; private buildOrderClause; private chooseJoinStart; private orderJoinSources; private chooseNextJoinSource; private compareJoinConnectivity; private boundVariableCount; private compareJoinFanout; private estimateJoinFanout; private boundPatternKeys; private sourceVariables; private compareJoinSources; private estimateResolvedCardinality; private resolveJoinPattern; private joinMetrics; private joinRowsToBindings; private buildPagination; private estimateExactTriple; private estimatePairProjection; private estimateTermProjection; private estimateMembershipCardinality; private estimateResolvedMembershipCardinality; private buildMembershipWhere; private pairProjectionFor; private appendResolvedIdSetConditions; private appendResolvedExcludedIdSetConditions; private resolvePattern; private resolveTermInIds; private resolveTermNotInIds; private resolveOperatorPattern; private resolveTermMetadataFilter; private resolveTextSearchFilter; private resolveDatatypeFilter; private countDistinctResolvedMembershipTuple; private estimateObjectRangeCardinality; private appendObjectRangeCondition; private appendTermFilterJoinsAndConditions; private appendTermFilterCondition; private appendTextSearchCondition; private appendTermTypeCondition; private appendLanguageCondition; private appendDatatypeCondition; private resolveObjectRange; private numericValueForPattern; private lexicalValueForPattern; private choosePermutation; private permutation; private rowsToQuads; private permutationSource; private factSource; private uniqueTripleCount; private rowCount; private collectPageCount; private estimateDatabaseBytes; private estimateSpaceObjectsFromSchema; private estimatePageSize; private metrics; private requireDb; private requireDictionary; } export {};