import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RefreshTokenRequest, RefreshTokenResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RefreshTokenCommand}. */ export interface RefreshTokenCommandInput extends RefreshTokenRequest { } /** * @public * * The output of {@link RefreshTokenCommand}. */ export interface RefreshTokenCommandOutput extends RefreshTokenResponse, __MetadataBearer { } declare const RefreshTokenCommand_base: { new (input: RefreshTokenCommandInput): import("@smithy/core/client").CommandImpl; new (input: RefreshTokenCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * *

This is for internal use.

*
*

Amplify uses this action to refresh a previously issued access token that might have expired.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AmplifyUIBuilderClient, RefreshTokenCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import * // const { AmplifyUIBuilderClient, RefreshTokenCommand } = 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 = { // RefreshTokenRequest * provider: "STRING_VALUE", // required * refreshTokenBody: { // RefreshTokenRequestBody * token: "STRING_VALUE", // required * clientId: "STRING_VALUE", * }, * }; * const command = new RefreshTokenCommand(input); * const response = await client.send(command); * // { // RefreshTokenResponse * // accessToken: "STRING_VALUE", // required * // expiresIn: Number("int"), // required * // }; * * ``` * * @param RefreshTokenCommandInput - {@link RefreshTokenCommandInput} * @returns {@link RefreshTokenCommandOutput} * @see {@link RefreshTokenCommandInput} for command's `input` shape. * @see {@link RefreshTokenCommandOutput} 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 RefreshTokenCommand extends RefreshTokenCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RefreshTokenRequest; output: RefreshTokenResponse; }; sdk: { input: RefreshTokenCommandInput; output: RefreshTokenCommandOutput; }; }; }