import { RequestOptionsFactory } from '@wix/sdk-types'; import { CreateIndexRequest, CreateIndexResponse, DropIndexRequest, DropIndexResponse, ListIndexesRequest, ListIndexesResponse } from './data-v2-index.types'; /** * Creates an index for a data collection. * * The index can't be used immediately, as the process of generating the index takes time. * You can check whether your index is ready using the [List Indexes](https://dev.wix.com/api/rest/wix-data/wix-data/indexes/list-indexes) endpoint. * * Note that when an index fails to create, the failed index still occupies a slot. * To remove the failed index and free up the slot for a new index, use the Drop Index endpoint. */ export declare function createIndex(payload: CreateIndexRequest): RequestOptionsFactory; /** * Removes an index from a data collection. * * The process of dropping an index from a collection takes time. * You can check whether your index has been dropped by using the [List Indexes](https://dev.wix.com/api/rest/wix-data/wix-data/indexes/list-indexes) endpoint. */ export declare function dropIndex(payload: DropIndexRequest): RequestOptionsFactory; /** * Lists all indexes defined for a data collection. * * When an index's status is `ACTIVE`, it is ready to use. * While it is still being created, its status is `BUILDING`. * * When an index's status is `DROPPED`, it has been dropped successfully. * While it is still in the process of being removed, its status is `DROPPING`. */ export declare function listIndexes(payload: ListIndexesRequest): RequestOptionsFactory;