UNPKG

@difizen/mana-core

Version:

31 lines 1.46 kB
import { Disposable, Emitter } from '@difizen/mana-common'; import type { StorageService } from '../common'; import type { CssVariable, VariableDefinition } from './protocol'; import type { ExtraTokens } from './theme-service'; import { ThemeService } from './theme-service'; /** * It should be implemented by an extension, e.g. by the monaco extension. */ export declare class BaseVariableRegistry { protected readonly themeService: ThemeService; protected get definitionList(): VariableDefinition[]; protected definitionMap: Map<string, VariableDefinition>; protected storageService: StorageService; protected readonly onDidChangeEmitter: Emitter<void>; readonly onDidChange: import("@difizen/mana-common").Event<void>; protected fireDidChange(): void; /** * @deprecated using getDefinitionIds instead * */ getVariables(): IterableIterator<string>; getDefinitionIds(): IterableIterator<string>; getCurrentCssVariables(): CssVariable[]; toCurrentCssVariable(id: string): CssVariable | undefined; toCssVariableName(id: string, prefix?: string): string; getCurrentDefinitionValue(id: string): string | undefined; setCurrentDefinitionValue(name: string, value: string, tokens?: ExtraTokens): void; register(...definitions: VariableDefinition[]): Disposable; protected doRegister(definition: VariableDefinition): Disposable; } //# sourceMappingURL=base-variable-registry.d.ts.map