import { DrawBatcher } from '../core/DrawBatcher'; import { CanvasLeaf } from '../core/CanvasLeaf'; export interface CanvasSkeletonGradientStop { offset: number; color: string; } export interface CanvasSkeletonOptions { roundness?: Roundness | string; customGradientColor?: string; lighter?: boolean; animated?: boolean; shimmerDuration?: number; } declare const ROUNDNESS_MAP: { readonly 250: 15.625; readonly 32: 2; readonly 28: 1.75; readonly 24: 1.5; readonly 20: 1.25; readonly 18: 1.125; readonly 16: 1; readonly 14: 0.875; readonly 12: 0.75; readonly 8: 0.5; readonly 0: 0; }; export type Roundness = keyof typeof ROUNDNESS_MAP; export declare class CanvasSkeleton extends CanvasLeaf { private borderRadius; private _gradientStops; private _gradientAngle; private animated; private shimmerDuration; constructor(id: string, options?: CanvasSkeletonOptions); measure(_ctx: CanvasRenderingContext2D): void; onPaint(batcher: DrawBatcher, _ctx: CanvasRenderingContext2D): void; } export {};