import { AwsCredentialIdentityProvider } from "@aws-sdk/types"; import { MapAuthHelper, SDKAuthHelper } from "../common/types"; /** * Creates an auth helper instance using an arbitrary AWS credentials provider function. This is useful when credentials * are obtained through a custom mechanism, such as a Cognito Identity Pool that requires authentication first, or a * dedicated back-end service. * * @param credentialProvider A function that returns AWS credentials (or a promise of them). * @param region The AWS region for signing requests. */ export declare function withCredentialProvider(credentialProvider: AwsCredentialIdentityProvider, region: string): Promise;