@salesforce/core
Version:
Core libraries to interact with SFDX projects, orgs, and APIs.
24 lines (23 loc) • 934 B
TypeScript
import { AsyncOptionalCreatable } from '@salesforce/kit';
import { AliasAccessor } from './accessors/aliasAccessor';
import { OrgAccessor } from './accessors/orgAccessor';
import { SandboxAccessor } from './accessors/sandboxAccessor';
export declare class StateAggregator extends AsyncOptionalCreatable {
private static instanceMap;
aliases: AliasAccessor;
orgs: OrgAccessor;
sandboxes: SandboxAccessor;
/**
* Reuse a StateAggregator if one was already created for the current global state directory
* Otherwise, create one and adds it to map for future reuse.
* HomeDir might be stubbed in tests
*/
static getInstance(): Promise<StateAggregator>;
/**
* Clear the cache to force reading from disk.
*
* *NOTE: Only call this method if you must and you know what you are doing.*
*/
static clearInstance(path?: string): void;
protected init(): Promise<void>;
}