UNPKG

934 BTypeScriptView Raw
1import { AsyncOptionalCreatable } from '@salesforce/kit';
2import { AliasAccessor } from './accessors/aliasAccessor';
3import { OrgAccessor } from './accessors/orgAccessor';
4import { SandboxAccessor } from './accessors/sandboxAccessor';
5export declare class StateAggregator extends AsyncOptionalCreatable {
6 private static instanceMap;
7 aliases: AliasAccessor;
8 orgs: OrgAccessor;
9 sandboxes: SandboxAccessor;
10 /**
11 * Reuse a StateAggregator if one was already created for the current global state directory
12 * Otherwise, create one and adds it to map for future reuse.
13 * HomeDir might be stubbed in tests
14 */
15 static getInstance(): Promise<StateAggregator>;
16 /**
17 * Clear the cache to force reading from disk.
18 *
19 * *NOTE: Only call this method if you must and you know what you are doing.*
20 */
21 static clearInstance(path?: string): void;
22 protected init(): Promise<void>;
23}