import { Shader } from '../canvas'; import { Point, Size } from '../math'; import { BoxShadow } from './box-shadow'; import type { PaintingContext, PaintingContextCallback } from './painting-context'; import type { RenderObject } from './render-object'; export declare class BoxDecorator { backgroundColor?: string; backgroundImage?: Shader; borderColor?: string; borderImage?: Shader; borderWidth?: number; borderRadius?: number; boxShadow?: BoxShadow; paintBackground(context: PaintingContext, offset: Point, size: Size): void; paintBorder(context: PaintingContext, offset: Point, size: Size): void; get hasBorderRadius(): boolean; clipBorderRadiusAndPaint(context: PaintingContext, needsCompositing: boolean, offset: Point, size: Size, paint: PaintingContextCallback, thisArg: RenderObject): void; }