import { CredentialProviderOptions } from "@aws-sdk/types"; import { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable, } from "@smithy/types"; export interface AssumeRoleWithWebIdentityParams { RoleArn: string; RoleSessionName: string; WebIdentityToken: string; ProviderId?: string; PolicyArns?: { arn?: string; }[]; Policy?: string; DurationSeconds?: number; } type LowerCaseKey = { [K in keyof T as `${Uncapitalize}`]: T[K]; }; export interface FromWebTokenInit extends Pick< LowerCaseKey, Exclude< keyof LowerCaseKey, "roleSessionName" > >, CredentialProviderOptions { roleSessionName?: string; roleAssumerWithWebIdentity?: ( params: AssumeRoleWithWebIdentityParams ) => Promise; clientConfig?: any; clientPlugins?: Pluggable[]; } export declare const fromWebToken: ( init: FromWebTokenInit ) => AwsCredentialIdentityProvider; export {};