import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListStateMachineVersionsInput, ListStateMachineVersionsOutput } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SFNClientResolvedConfig } from "../SFNClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListStateMachineVersionsCommand}. */ export interface ListStateMachineVersionsCommandInput extends ListStateMachineVersionsInput { } /** * @public * * The output of {@link ListStateMachineVersionsCommand}. */ export interface ListStateMachineVersionsCommandOutput extends ListStateMachineVersionsOutput, __MetadataBearer { } declare const ListStateMachineVersionsCommand_base: { new (input: ListStateMachineVersionsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListStateMachineVersionsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Lists versions for the specified state machine Amazon Resource Name (ARN).

*

The results are sorted in descending order of the version creation time.

*

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

*

* Related operations: *

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SFNClient, ListStateMachineVersionsCommand } from "@aws-sdk/client-sfn"; // ES Modules import * // const { SFNClient, ListStateMachineVersionsCommand } = require("@aws-sdk/client-sfn"); // CommonJS import * // import type { SFNClientConfig } from "@aws-sdk/client-sfn"; * const config = {}; // type is SFNClientConfig * const client = new SFNClient(config); * const input = { // ListStateMachineVersionsInput * stateMachineArn: "STRING_VALUE", // required * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListStateMachineVersionsCommand(input); * const response = await client.send(command); * // { // ListStateMachineVersionsOutput * // stateMachineVersions: [ // StateMachineVersionList // required * // { // StateMachineVersionListItem * // stateMachineVersionArn: "STRING_VALUE", // required * // creationDate: new Date("TIMESTAMP"), // required * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListStateMachineVersionsCommandInput - {@link ListStateMachineVersionsCommandInput} * @returns {@link ListStateMachineVersionsCommandOutput} * @see {@link ListStateMachineVersionsCommandInput} for command's `input` shape. * @see {@link ListStateMachineVersionsCommandOutput} for command's `response` shape. * @see {@link SFNClientResolvedConfig | config} for SFNClient's `config` shape. * * @throws {@link InvalidArn} (client fault) *

The provided Amazon Resource Name (ARN) is not valid.

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

The provided token is not valid.

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

The input does not satisfy the constraints specified by an Amazon Web Services service.

* * @throws {@link SFNServiceException} *

Base exception class for all service exceptions from SFN service.

* * * @public */ export declare class ListStateMachineVersionsCommand extends ListStateMachineVersionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListStateMachineVersionsInput; output: ListStateMachineVersionsOutput; }; sdk: { input: ListStateMachineVersionsCommandInput; output: ListStateMachineVersionsCommandOutput; }; }; }