import { Event, Uri } from '@opensumi/ide-core-common'; import { IExtensionStorageUri } from '@opensumi/ide-extension-storage'; export interface KeysToAnyValues { [key: string]: any; } export interface KeysToKeysToAnyValue { [key: string]: KeysToAnyValues; } export interface IMainThreadStorage { $getValue(shared: boolean, key: string): Promise; $setValue(shared: boolean, key: string, value: KeysToAnyValues): Promise; } export interface IStorageChangeEvent { shared: boolean; data: KeysToAnyValues; } export interface IExtHostStorage { onDidChangeStorage: Event; getValue(shared: boolean, key: string, defaultValue?: T): Promise; setValue(shared: boolean, key: string, value: any): Promise; getExtensionStorageUri(extensionId: string): Uri; getExtensionGlobalStorageUri(extensionId: string): Uri; getExtensionLogUri(extensionId: string): Uri; $acceptStoragePath(paths: IExtensionStorageUri): Promise; $updateWorkspaceStorageData(data: KeysToKeysToAnyValue): Promise; } //# sourceMappingURL=storage.d.ts.map