import { SearchIndex, IndexesCreateOptionalParams, IndexesCreateResponse, IndexesListOptionalParams, IndexesListResponse, IndexesCreateOrUpdateOptionalParams, IndexesCreateOrUpdateResponse, IndexesDeleteOptionalParams, IndexesGetOptionalParams, IndexesGetResponse, IndexesGetStatisticsOptionalParams, IndexesGetStatisticsResponse, AnalyzeRequest, IndexesAnalyzeOptionalParams, IndexesAnalyzeResponse } from "../models/index.js"; /** Interface representing a Indexes. */ export interface Indexes { /** * Creates a new search index. * @param index The definition of the index to create. * @param options The options parameters. */ create(index: SearchIndex, options?: IndexesCreateOptionalParams): Promise; /** * Lists all indexes available for a search service. * @param options The options parameters. */ list(options?: IndexesListOptionalParams): Promise; /** * Creates a new search index or updates an index if it already exists. * @param indexName The definition of the index to create or update. * @param index The definition of the index to create or update. * @param options The options parameters. */ createOrUpdate(indexName: string, index: SearchIndex, options?: IndexesCreateOrUpdateOptionalParams): Promise; /** * Deletes a search index and all the documents it contains. This operation is permanent, with no * recovery option. Make sure you have a master copy of your index definition, data ingestion code, and * a backup of the primary data source in case you need to re-build the index. * @param indexName The name of the index to delete. * @param options The options parameters. */ delete(indexName: string, options?: IndexesDeleteOptionalParams): Promise; /** * Retrieves an index definition. * @param indexName The name of the index to retrieve. * @param options The options parameters. */ get(indexName: string, options?: IndexesGetOptionalParams): Promise; /** * Returns statistics for the given index, including a document count and storage usage. * @param indexName The name of the index for which to retrieve statistics. * @param options The options parameters. */ getStatistics(indexName: string, options?: IndexesGetStatisticsOptionalParams): Promise; /** * Shows how an analyzer breaks text into tokens. * @param indexName The name of the index for which to test an analyzer. * @param request The text and analyzer or analysis components to test. * @param options The options parameters. */ analyze(indexName: string, request: AnalyzeRequest, options?: IndexesAnalyzeOptionalParams): Promise; } //# sourceMappingURL=indexes.d.ts.map