import type * as Protocol from '../../generated/protocol.js'; import * as TextUtils from '../../models/text_utils/text_utils.js'; import type { CSSModel, Edit } from './CSSModel.js'; import { CSSProperty } from './CSSProperty.js'; import type { CSSRule } from './CSSRule.js'; import type { Target } from './Target.js'; export declare class CSSStyleDeclaration { #private; parentRule: CSSRule | null; styleSheetId?: Protocol.DOM.StyleSheetId; range: TextUtils.TextRange.TextRange | null; cssText?: string; type: Type; constructor(cssModel: CSSModel, parentRule: CSSRule | null, payload: Protocol.CSS.CSSStyle, type: Type, animationName?: string); rebase(edit: Edit): void; animationName(): string | undefined; leadingProperties(): CSSProperty[]; target(): Target; cssModel(): CSSModel; allProperties(): CSSProperty[]; hasActiveProperty(name: string): boolean; getPropertyValue(name: string): string; isPropertyImplicit(name: string): boolean; propertyAt(index: number): CSSProperty | null; pastLastSourcePropertyIndex(): number; newBlankProperty(index?: number): CSSProperty; setText(text: string, majorChange: boolean): Promise; insertPropertyAt(index: number, name: string, value: string, userCallback?: ((arg0: boolean) => void)): void; appendProperty(name: string, value: string, userCallback?: ((arg0: boolean) => void)): void; } export declare enum Type { Regular = "Regular", Inline = "Inline", Attributes = "Attributes", Pseudo = "Pseudo",// This type is for style declarations generated by devtools Transition = "Transition", Animation = "Animation" }