import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListVersionsRequest, ListVersionsResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListVersionsCommand}. */ export interface ListVersionsCommandInput extends ListVersionsRequest { } /** * @public * * The output of {@link ListVersionsCommand}. */ export interface ListVersionsCommandOutput extends ListVersionsResponse, __MetadataBearer { } declare const ListVersionsCommand_base: { new (input: ListVersionsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListVersionsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Lists all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service * supports.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, ListVersionsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, ListVersionsCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; * const config = {}; // type is OpenSearchClientConfig * const client = new OpenSearchClient(config); * const input = { // ListVersionsRequest * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new ListVersionsCommand(input); * const response = await client.send(command); * // { // ListVersionsResponse * // Versions: [ // VersionList * // "STRING_VALUE", * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListVersionsCommandInput - {@link ListVersionsCommandInput} * @returns {@link ListVersionsCommandOutput} * @see {@link ListVersionsCommandInput} for command's `input` shape. * @see {@link ListVersionsCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link BaseException} (client fault) *

An error occurred while processing the request.

* * @throws {@link InternalException} (server fault) *

Request processing failed because of an unknown error, exception, or internal failure.

* * @throws {@link ResourceNotFoundException} (client fault) *

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link ValidationException} (client fault) *

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link OpenSearchServiceException} *

Base exception class for all service exceptions from OpenSearch service.

* * * @public */ export declare class ListVersionsCommand extends ListVersionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListVersionsRequest; output: ListVersionsResponse; }; sdk: { input: ListVersionsCommandInput; output: ListVersionsCommandOutput; }; }; }