import type { Knex, Transaction } from '../knex.types.js'; import { IndexManager011 } from './index-manager-011.js'; import { IndexManager012 } from './index-manager-012.js'; import { IndexManager013 } from './index-manager-013.js'; import { IndexManager014 } from './index-manager-014.js'; import type { CreateBm25Options, DropBm25Options, IndexSchemaDto, IndexSchemaOptions, IndexSizeOptions } from './index.types.js'; export declare class IndexManager { protected readonly dbh: Knex; version: string; isDb011: boolean; isDb012: boolean; isDb013: boolean; isDb014: boolean; indexManager011: IndexManager011; indexManager012: IndexManager012; indexManager013: IndexManager013; indexManager014: IndexManager014; /** * $PARADEDB_VER * - '_bm25_index' for paradedb v0.11.0 * - '' for paradedb v0.12.0 */ indexSuffix: string; constructor(dbh: Knex, version?: string); /** * Create an Index * @link https://docs.paradedb.com/documentation/indexing/create_index */ createBm25(options: CreateBm25Options): Promise; /** * Drop an Index * @link https://docs.paradedb.com/documentation/indexing/delete_index */ dropBm25(options: DropBm25Options): Promise; /** * The `schema` function returns a table with information about the index schema. * This is useful for inspecting how an index was configured. * @link https://docs.paradedb.com/documentation/indexing/inspect_index */ schema(options: IndexSchemaOptions): Promise; /** * Get the size of an index in bytes, * return zero if the index does not exist. * @link https://docs.paradedb.com/documentation/indexing/inspect_index#index-size */ size(options: IndexSizeOptions): Promise; /** * The scores generated by the BM25 index may be influenced by dead rows that have not been cleaned up by the VACUUM process * @link https://docs.paradedb.com/documentation/full-text/scoring#score-refresh */ refreshScore(tableName: string): Promise; execute(sql: string, params: unknown[], trx: Transaction | undefined | null): Promise; startTransaction(): Promise; /** * Get the version of pg_search extension * @returns version string eg. "0.13.0" */ getSearchVersion(): Promise; private initVersion; private setVersionFlag; } //# sourceMappingURL=index-manager.d.ts.map