import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types"; import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable, Provider } from "@smithy/types"; export interface HttpBearerAuthInputConfig { /** * @deprecated `token` property should be used, instead. This will be removed on our next major release. */ bearerToken?: string | Provider; /** * The Bearer token to use when making requests. * * This is optional because some operations may not require a Bearer token. */ token?: TokenIdentity | TokenIdentityProvider; } interface PreviouslyResolved { } export interface HttpBearerAuthResolvedConfig { /** * The Bearer token to use when making requests. * * This is optional because some operations may not require a Bearer token. */ token?: TokenIdentityProvider; } export declare function resolveHttpBearerAuthConfig(input: T & PreviouslyResolved & HttpBearerAuthInputConfig): T & HttpBearerAuthResolvedConfig; /** * Middleware to inject the Bearer token into the HTTP request. * * The middleware will inject the client's configured bearer token into the * request as defined by the `@httpBearerAuth` trait. * * @param options the plugin options (location of the parameter, name, and optional scheme) * @returns a function that processes the HTTP request and passes it on to the next handler */ export declare const httpBearerAuthMiddleware: (pluginConfig: HttpBearerAuthResolvedConfig) => BuildMiddleware; export declare const httpBearerAuthMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; export declare const getHttpBearerAuthPlugin: (pluginConfig: HttpBearerAuthResolvedConfig) => Pluggable; export {};