import { BoundingBox, Context, Element } from "../../base"; import { FlexFloat } from "./style"; /** * This is a wrapper around element to allow configuration for flex * and interprete it for the calculation of width and height */ export declare class FlexItem implements Element { private element; readonly flexFloat: FlexFloat[]; itemWidth?: number; /** * Creates a new element with flex specific configuration * @param flexFloat how to allocate space at the sides of this element * @param flexWidth how to allocate extra width to this item * @param element element being wrapped */ constructor(element: Element, flexFloat?: FlexFloat[], itemWidth?: number); width(context: Context, box: BoundingBox): number; height(context: Context, box: BoundingBox): number; draw(context: Context, box: BoundingBox): void; }