///
import "./index.scss";
import React = require("react");
import { Workspace } from "@tandem/editor/browser/stores";
import { BaseApplicationComponent } from "@tandem/common";
import { IKeyValueInputComponentProps, IKeyValueNameComponentProps } from "@tandem/html-extension/editor/browser/components/common";
import { MatchedCSSStyleRule, SyntheticDOMElement, SyntheticCSSStyle } from "@tandem/synthetic-browser";
export interface ICSSStyleHashInputProps {
style: SyntheticCSSStyle;
overridden?: any;
inherited?: any;
renderName?: (props: IKeyValueNameComponentProps) => any;
renderValue?: (props: IKeyValueInputComponentProps) => any;
setDeclaration: (key, value, oldKey?) => any;
}
export interface ICSSStylePaneComponentProps extends ICSSStyleHashInputProps {
title?: string;
titleClassName?: string;
pretty?: boolean;
inherited?: boolean;
renderTitle?(props?: ICSSStylePaneComponentProps): any;
}
export declare class CSSStylePropertyComponent extends BaseApplicationComponent {
state: {
showPrettyInput: boolean;
};
togglePrettyInput: () => void;
render(): JSX.Element;
renderPrettyInput(props: IKeyValueInputComponentProps): JSX.Element;
}
export declare class CSSStyleHashInputComponent extends React.Component {
render(): JSX.Element;
renderItem: (props: IKeyValueInputComponentProps) => any;
}
export declare class CSSStylePaneComponent extends BaseApplicationComponent {
state: {
showPrettyInput: boolean;
};
render(): JSX.Element;
}
export declare class ElementCSSPaneComponent extends React.Component<{
workspace: Workspace;
}, any> {
private _rulesWatcher;
componentWillUnmount(): void;
render(): JSX.Element;
}
export declare class MatchedCSSRulesCache {
private _target;
private _matchedRules;
private _documentObserver;
constructor();
target: SyntheticDOMElement;
readonly rules: MatchedCSSStyleRule[];
private matchRules();
private onDocumentEvent(event);
}