import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ExchangeCodeForTokenRequest, ExchangeCodeForTokenResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ExchangeCodeForTokenCommand}. */ export interface ExchangeCodeForTokenCommandInput extends ExchangeCodeForTokenRequest { } /** * @public * * The output of {@link ExchangeCodeForTokenCommand}. */ export interface ExchangeCodeForTokenCommandOutput extends ExchangeCodeForTokenResponse, __MetadataBearer { } declare const ExchangeCodeForTokenCommand_base: { new (input: ExchangeCodeForTokenCommandInput): import("@smithy/core/client").CommandImpl; new (input: ExchangeCodeForTokenCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * *

This is for internal use.

*
*

Amplify uses this action to exchange an access code for a token.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AmplifyUIBuilderClient, ExchangeCodeForTokenCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import * // const { AmplifyUIBuilderClient, ExchangeCodeForTokenCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import * // import type { AmplifyUIBuilderClientConfig } from "@aws-sdk/client-amplifyuibuilder"; * const config = {}; // type is AmplifyUIBuilderClientConfig * const client = new AmplifyUIBuilderClient(config); * const input = { // ExchangeCodeForTokenRequest * provider: "STRING_VALUE", // required * request: { // ExchangeCodeForTokenRequestBody * code: "STRING_VALUE", // required * redirectUri: "STRING_VALUE", // required * clientId: "STRING_VALUE", * }, * }; * const command = new ExchangeCodeForTokenCommand(input); * const response = await client.send(command); * // { // ExchangeCodeForTokenResponse * // accessToken: "STRING_VALUE", // required * // expiresIn: Number("int"), // required * // refreshToken: "STRING_VALUE", // required * // }; * * ``` * * @param ExchangeCodeForTokenCommandInput - {@link ExchangeCodeForTokenCommandInput} * @returns {@link ExchangeCodeForTokenCommandOutput} * @see {@link ExchangeCodeForTokenCommandInput} for command's `input` shape. * @see {@link ExchangeCodeForTokenCommandOutput} for command's `response` shape. * @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape. * * @throws {@link InvalidParameterException} (client fault) *

An invalid or out-of-range value was supplied for the input parameter.

* * @throws {@link AmplifyUIBuilderServiceException} *

Base exception class for all service exceptions from AmplifyUIBuilder service.

* * * @public */ export declare class ExchangeCodeForTokenCommand extends ExchangeCodeForTokenCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ExchangeCodeForTokenRequest; output: ExchangeCodeForTokenResponse; }; sdk: { input: ExchangeCodeForTokenCommandInput; output: ExchangeCodeForTokenCommandOutput; }; }; }