import { HttpBaseClient } from '../MochowClient'; import { CommonResponse, Constructor, DescIndexResponse, IndexSchema } from '../types'; /** * * @param {Constructor} Base - The base class to be extended. * @returns {class} - The extended class with additional methods for collection management. * * @method createIndex - create indexes for table * @method dropIndex - drop one index. * @method descIndex - desc one index, return index schema. * @method modifyIndex - change one index, now for modify auto build policy * @method rebuildIndex - rebuild one index */ export declare function Index>(Base: T): { new (...args: any[]): { readonly indexPrefix: string; createIndex(database: string, table: string, indexes: IndexSchema[]): Promise; dropIndex(database: string, table: string, indexName: string): Promise; descIndex(database: string, table: string, indexName: string): Promise; modifyIndex(database: string, table: string, indexSchema: IndexSchema): Promise; rebuildIndex(database: string, table: string, indexName: string): Promise; config: import("../types").ClientConfiguration; readonly baseURL: string; readonly authorization: string; readonly timeout: number; readonly headers: { Authorization: string; ContentType: string; }; POST(url: string, params?: Record, data?: Record): Promise; DELETE(url: string, params?: Record, data?: Record): Promise; }; } & T;