import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Index, ListIndexesOptions, ListIndexesResponse, ListAvailableIndexesResponse, IndexCreatedEnvelope, IndexDeletedEnvelope, IndexUpdatedEnvelope } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, BaseEventMetadata, CreateIndexRequest, CreateIndexResponse, DomainEvent, DomainEventBodyOneOf, DropIndexRequest, DropIndexResponse, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Environment, EnvironmentWithLiterals, EventMetadata, Failure, Field, IdentificationData, IdentificationDataIdOneOf, IndexSource, IndexSourceWithLiterals, ListAvailableIndexesRequest, ListIndexesRequest, MessageEnvelope, Order, OrderWithLiterals, Paging, PagingMetadata, RestoreInfo, Status, StatusWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function createIndex$1(httpClient: HttpClient): CreateIndexSignature; interface CreateIndexSignature { /** * 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 an index is ready by calling List Indexes. * * 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, call Drop Index. * @param - ID of the data collection for which to generate the index. * @param - Details of the index to be created. * @param - Options for creating an index. * @returns Details of the index being generated. */ (dataCollectionId: string, index: NonNullablePaths): Promise>; } declare function dropIndex$1(httpClient: HttpClient): DropIndexSignature; interface DropIndexSignature { /** * Removes an index from a data collection. * * The process of dropping an index from a collection takes time. * You can check whether an index has been dropped by calling List Indexes. * @param - ID of the data collection for which the index to be dropped is defined. * @param - Name of the index to drop. * @param - Options for dropping an index. */ (dataCollectionId: string, indexName: string): Promise; } declare function listIndexes$1(httpClient: HttpClient): ListIndexesSignature; interface ListIndexesSignature { /** * 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`. * @param - ID of the data collection for which to list indexes. * @param - Options for retrieving a list of indexes. */ (dataCollectionId: string, options?: ListIndexesOptions): Promise>; } /** @internal */ declare function listAvailableIndexes$1(httpClient: HttpClient): ListAvailableIndexesSignature; interface ListAvailableIndexesSignature { /** * Lists available indexes limits * @param - Data collection to show available indexes for */ (dataCollectionId: string): Promise>; } declare const onIndexCreated$1: EventDefinition; declare const onIndexDeleted$1: EventDefinition; declare const onIndexUpdated$1: EventDefinition; declare const createIndex: MaybeContext & typeof createIndex$1>; declare const dropIndex: MaybeContext & typeof dropIndex$1>; declare const listIndexes: MaybeContext & typeof listIndexes$1>; /** @internal */ declare const listAvailableIndexes: MaybeContext & typeof listAvailableIndexes$1>; /** * Triggered when an index is created. */ declare const onIndexCreated: BuildEventDefinition & typeof onIndexCreated$1; /** * Triggered when an index is dropped. */ declare const onIndexDeleted: BuildEventDefinition & typeof onIndexDeleted$1; /** * Triggered when an index's status field is updated. * * For example, during index creation, the index's status transitions from `BUILDING` to `ACTIVE` or `FAILED`. Either transition triggers this event. */ declare const onIndexUpdated: BuildEventDefinition & typeof onIndexUpdated$1; export { Index, IndexCreatedEnvelope, IndexDeletedEnvelope, IndexUpdatedEnvelope, ListAvailableIndexesResponse, ListIndexesOptions, ListIndexesResponse, createIndex, dropIndex, listAvailableIndexes, listIndexes, onIndexCreated, onIndexDeleted, onIndexUpdated };