import { DefaultCredentialProvider , getDefaultRoleAssumer as StsGetDefaultRoleAssumer , getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity , RoleAssumer , RoleAssumerWithWebIdentity , } from "./defaultStsRoleAssumers" ; import { STSClient , STSClientConfig } from "./STSClient" ; /**
 * The default role assumer that used by credential providers when sts:AssumeRole API is needed.
 */ export const getDefaultRoleAssumer = ( stsOptions = { } ) : RoleAssumer => StsGetDefaultRoleAssumer ( stsOptions , STSClient ) ; /**
 * The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
 */ export const getDefaultRoleAssumerWithWebIdentity = ( stsOptions = { } ) : RoleAssumerWithWebIdentity => StsGetDefaultRoleAssumerWithWebIdentity ( stsOptions , STSClient ) ; internal export const decorateDefaultCredentialProvider = ( provider ) : DefaultCredentialProvider => ( input ) => provider ( { roleAssumer : getDefaultRoleAssumer ( input ) , roleAssumerWithWebIdentity : getDefaultRoleAssumerWithWebIdentity ( input ) , ... input , } ) ;