import { Credentials } from "@aws-sdk/types";
/***
 * Client Credentials
 * ---
 *
 * Creates a credential provider function that reads from a shared credentials file at ~/.aws/credentials and a shared
 * configuration file at ~/.aws/config.
 *
 * Both files are expected to be INI formatted with section names corresponding to
 * profiles.
 *
 * Sections in the credentials file are treated as profile names, whereas profile sections in the config file
 * must have the format of[profile profile-name], except for the default profile.
 *
 * @example
 * import { Credentials } from "credentials";
 * const credentials = await Credentials.initialize();
 * console.log(credentials);
 *
 */
declare class Credential {
    profile: string;
    region: string;
    /*** Shared Credentials File */
    readonly credentials: string;
    /*** Shared Configuration File */
    readonly configuration: string;
    /*** Valid Credentials Provider Instance */
    readonly valid: boolean;
    /***
     * Returns information about the currently effective user. On POSIX platforms, this is typically a subset of the
     * password file. The returned object includes the username, uid, gid, shell, and homedir. On Windows, the uid
     * and gid fields are -1, and shell is null. The value of homedir returned by os.userInfo() is provided by the
     * operating system. This differs from the result of os.homedir(), which queries environment variables for the home
     * directory before falling back to the operating system response.
     *
     * Throws a SystemError if a user has no username or homedir.
     *
     */
    private readonly user;
    private readonly ini;
    /*** Escape Hatch */
    private readonly env;
    private id?;
    private key?;
    constructor(profile: string);
    protected hydrate(environment?: boolean): Promise<void>;
    static initialize(profile?: string): Promise<Credential>;
}
declare const Credentials: Credential;
export { Credential, Credentials };
export default Credentials;
