import { IDisposable } from 'ts-toolset'; import { IStyleRuleEntity } from '../../../models/html'; export interface IStyleAccess extends IDisposable { hasRule(key: string): boolean; initStyleSheet(doc: Document): IStyleAccess; setCssRuleStore(store: Map): void; } export declare class StyleAccess implements IStyleAccess { private _styleSheet; private _styleNode; private _cssRuleStore; private _cssRuleMap; initStyleSheet(doc: Document): this; setCssRuleStore(store: Map): this; hasRule(key: string): boolean; insertRule(rule: IStyleRuleEntity): this; insertRules(rules: IStyleRuleEntity[]): this; updateRule(key: string, state: string, content: string): void; deleteRule(key: string): void; deleteRules(keys: string[]): void; dispose(): this; }