import { ColorRegistry } from './color-registry.js';
import { Emitter } from '../common/event.js';
import { ThemeService } from './theming.js';
import { FrontendApplicationContribution } from './frontend-application-contribution.js';
import { ContributionProvider } from '../common/contribution-provider.js';
import { DisposableCollection } from '../common/disposable.js';
import { SecondaryWindowService } from './window/secondary-window-service.js';
export declare const ColorContribution: unique symbol;
export interface ColorContribution {
    registerColors(colors: ColorRegistry): void;
}
export declare class ColorApplicationContribution implements FrontendApplicationContribution {
    protected readonly onDidChangeEmitter: Emitter<void>;
    readonly onDidChange: import("../common/event.js").Event<void>;
    private readonly windows;
    protected readonly colors: ColorRegistry;
    protected readonly colorContributions: ContributionProvider<ColorContribution>;
    protected readonly themeService: ThemeService;
    protected readonly secondaryWindowService: SecondaryWindowService;
    onStart(): void;
    registerWindow(win: Window): void;
    /**
     * The CSS variables currently applied to the document element of a window. Used to only remove
     * those that the current theme does not provide anymore, instead of removing and re-applying all
     * of them on every update.
     */
    protected readonly appliedCssVariables: WeakMap<Window, ReadonlySet<string>>;
    protected readonly toUpdate: DisposableCollection;
    protected update(): void;
    protected updateWindow(win: Window): void;
    protected updateThemeBackground(): void;
}
//# sourceMappingURL=color-application-contribution.d.ts.map