import { BoundingBox, Context, Element, Drawable } from "../base"; import { ColorValue } from "../utils"; /** * `Background` is used to draw a background color over any * arbitrary bounding box. */ export declare class Background implements Drawable { private color; /** * Create a background that can be drawn anywhere * @param color background color */ constructor(color: ColorValue); draw(context: Context, box: BoundingBox): void; } /** * `ElementBackground` is basically a background drawn into the bounding * box of any element. */ export declare class ElementBackground implements Element { private color; private element; constructor(color: ColorValue, element: Element); width(_context: Context, box: BoundingBox): number; height(_context: Context, box: BoundingBox): number; draw(context: Context, box: BoundingBox): void; } /** * `BackgroundImage` is the equivalent of `background-image` CSS property */ export declare class ImageBackground implements Drawable { private src; /** * Create a new image without drawing it * @param src path to the source image. For the sake of everyone involved please use an * absolute path */ constructor(src: string); draw(context: Context, box: BoundingBox): void; }