import { BBox, HTMLWidget, Widget } from "@hpcc-js/common";
import "../src/Border2.css";
export type OverflowT = "hidden" | "scroll" | "visible" | "auto";
export type ChartPanelSectionT = "top" | "right" | "bottom" | "left" | "center";
export declare class WidgetDiv {
private _div;
private _overlay;
private _overflowX;
private _overflowY;
private _widget;
constructor(div: any);
overlay(): boolean;
overlay(_: boolean): this;
overflowX(): OverflowT;
overflowX(_: OverflowT): this;
overflowY(): OverflowT;
overflowY(_: OverflowT): this;
element(): any;
node(): SVGElement | HTMLElement;
widget(): Widget;
widget(_: Widget): this;
resize(size: {
width: number;
height: number;
}): this;
render(getBBox?: any, availableHeight?: number, availableWidth?: number): Promise;
}
export declare class Border2 extends HTMLWidget {
protected _bodyElement: any;
protected _topWA: WidgetDiv;
protected _leftWA: WidgetDiv;
protected _centerWA: WidgetDiv;
protected _rightWA: WidgetDiv;
protected _bottomWA: WidgetDiv;
protected _topPrevOverflow: OverflowT;
protected _leftPrevOverflow: OverflowT;
protected _rightPrevOverflow: OverflowT;
protected _bottomPrevOverflow: OverflowT;
constructor();
enter(domNode: any, element: any): void;
update(domNode: any, element: any): void;
private targetNull;
exit(domNode: any, element: any): void;
swap(sectionA: ChartPanelSectionT, sectionB: ChartPanelSectionT): this;
render(callback?: (w: Widget) => void): this;
}
export interface Border2 {
top(): Widget;
top(_: Widget): this;
topOverlay(): boolean;
topOverlay(_: boolean): this;
left(): Widget;
left(_: Widget): this;
center(): Widget;
center(_: Widget): this;
right(): Widget;
right(_: Widget): this;
bottom(): Widget;
bottom(_: Widget): this;
bottomHeight(): number;
bottomHeight(_: number): this;
bottomHeight_exists(): boolean;
topOverflowX(): OverflowT;
topOverflowX(_: OverflowT): this;
rightOverflowX(): OverflowT;
rightOverflowX(_: OverflowT): this;
bottomOverflowX(): OverflowT;
bottomOverflowX(_: OverflowT): this;
leftOverflowX(): OverflowT;
leftOverflowX(_: OverflowT): this;
centerOverflowX(): OverflowT;
centerOverflowX(_: OverflowT): this;
topOverflowY(): OverflowT;
topOverflowY(_: OverflowT): this;
rightOverflowY(): OverflowT;
rightOverflowY(_: OverflowT): this;
bottomOverflowY(): OverflowT;
bottomOverflowY(_: OverflowT): this;
leftOverflowY(): OverflowT;
leftOverflowY(_: OverflowT): this;
centerOverflowY(): OverflowT;
centerOverflowY(_: OverflowT): this;
showTop(): boolean;
showTop(_: boolean): this;
showRight(): boolean;
showRight(_: boolean): this;
showBottom(): boolean;
showBottom(_: boolean): this;
showLeft(): boolean;
showLeft(_: boolean): this;
topOverflowX_default(_: OverflowT): any;
rightOverflowX_default(_: OverflowT): any;
bottomOverflowX_default(_: OverflowT): any;
leftOverflowX_default(_: OverflowT): any;
centerOverflowX_default(_: OverflowT): any;
topOverflowY_default(_: OverflowT): any;
rightOverflowY_default(_: OverflowT): any;
bottomOverflowY_default(_: OverflowT): any;
leftOverflowY_default(_: OverflowT): any;
centerOverflowY_default(_: OverflowT): any;
}