UNPKG

642 BTypeScriptView Raw
1import { AuthFields } from '../org';
2import { ConfigFile } from './configFile';
3/**
4 * An auth config file that stores information such as access tokens, usernames, etc.,
5 * in the global sfdx directory (~/.sfdx).
6 *
7 * ```
8 * const authInfo = await AuthInfoConfig.create(AuthInfoConfig.getOptions(username));
9 * ```
10 */
11export declare class AuthInfoConfig extends ConfigFile<ConfigFile.Options, AuthFields> {
12 protected static encryptedKeys: RegExp[];
13 /**
14 * Gets the config options for a given org ID.
15 *
16 * @param username The username for the org.
17 */
18 static getOptions(username: string): ConfigFile.Options;
19}