import type { ResourceId, Settings as ISettings, Theme as ITheme, ThemeId, ThemeVariableDefinition } from "../../../gen/types/mod.js"; import { type UnSubscriber } from "../../handlers/mod.js"; import { List } from "../../utils/List.js"; export declare class ThemeList extends List { static getAsync(): Promise; static onChange(cb: (payload: ThemeList) => void): Promise; applyToDocument(activeIds: ThemeId[], variables: ISettings["byTheme"]): void; } export interface Theme extends ITheme { } export declare class Theme { constructor(plain: ITheme); forEachVariableDefinition(cb: (def: ThemeVariableDefinition) => void): void; /** Will add the styles targeting the current widget id */ applyToDocument(varValues?: ISettings["byTheme"][ResourceId]): void; removeFromDocument(): void; } //# sourceMappingURL=mod.d.ts.map