export interface StyleSpec { stylePropertyName?: string; initialStylePropertyValue?: string; mapStylePropertyValue?: StylePropertyValueProjection; fontElementAttributeName?: string; mapFontElementAttributeValue?: FontElementAttributeValueProjection; mapValue?: ValueProjection; isValueEqual?: (a: string, b: string) => boolean; shouldPaintElementIfValueDiffers?: (node: Node) => boolean; } export declare type StylePropertyValueProjection = (stylePropertyValue: string, stylePropertyName: string, element: HTMLElement | SVGElement, container: Node) => string; export declare type FontElementAttributeValueProjection = (fontElementAttributeValue: string, fontElementAttributeName: string, element: HTMLFontElement, container: Node) => string; export declare type ValueProjection = (value: string) => string; export declare function getCSSPropertyValue(element: Element, property: string): string | null; export declare function createMapToComputedStyle(computedStylePropertyName: string): StylePropertyValueProjection & FontElementAttributeValueProjection; export declare function isFontElement(node: Node | null): node is HTMLFontElement; export declare function hasInheritedStyleForNode(container: Node, node: Node, spec: StyleSpec): boolean; export declare function getInheritedStyleForNode(container: Node, node: Node, spec: StyleSpec): string; export declare function hasStyleForElement(container: Node, element: HTMLElement | SVGElement, spec: StyleSpec): boolean; export declare function getStyleForNode(container: Node, element: HTMLElement | SVGElement, spec: StyleSpec): string; export declare function removeStyleFromElement(element: HTMLElement | SVGElement, spec: StyleSpec): Node | null; export declare function removeStyleFromRange(container: Node, range: Range, spec: StyleSpec): Range; export declare function applyStyleToElement(element: HTMLElement | SVGElement, spec: StyleSpec, newStylePropertyValue: string): void; export declare function applyStyleToRange(container: Node, range: Range, spec: StyleSpec, newStylePropertyValue: string): Range;