/// import { Workspace } from "@tandem/editor/browser"; import { SyntheticCSSStyleGraphics } from "@tandem/synthetic-browser"; import { Observable } from "@tandem/common"; import { SyntheticCSSElementStyleRule, SyntheticHTMLElement, SyntheticCSSStyle } from "@tandem/synthetic-browser"; export declare type MatchedCSSStyleRuleType = SyntheticCSSElementStyleRule | SyntheticHTMLElement; export declare class MergedCSSStyleRule extends Observable { readonly workspace: Workspace; readonly target: SyntheticHTMLElement; private _style; selectedStyleRule: MatchedCSSStyleRuleType; selectedStyleProperty: string; private _bus; private _main; private _graphics; private _documentObserver; private _document; private _queuedEditMutations; private _mainByProperty; private _sources; constructor(workspace: Workspace, target: SyntheticHTMLElement); readonly style: SyntheticCSSStyle; readonly graphics: SyntheticCSSStyleGraphics; dispose(): void; readonly pinnedRule: MatchedCSSStyleRuleType; pinRule(rule: MatchedCSSStyleRuleType): void; readonly mainSources: (SyntheticCSSElementStyleRule | SyntheticHTMLElement)[]; readonly inheritedRules: (SyntheticCSSElementStyleRule | SyntheticHTMLElement)[]; readonly matchingRules: (SyntheticCSSElementStyleRule | SyntheticHTMLElement)[]; setProperty(source: MatchedCSSStyleRuleType, name: string, value: string): void; setSelectedStyleProperty(name: string, value: string): void; requestFlushEdits: (() => void) & _.Cancelable; computeStyle(): void; getDeclarationSourceRules(name: string): Array; getDeclarationMainSourceRule(name: string): MatchedCSSStyleRuleType; getAssignableRules(styleName: string): (SyntheticCSSElementStyleRule | SyntheticHTMLElement)[]; getTargetRule(styleName: string): MatchedCSSStyleRuleType; getBestSourceRule(): MatchedCSSStyleRuleType; private _onDocumentEvent({mutation}); private requestReset; private reset(); }