export interface IControl { render(e: Element): any; dispose?(): any; title(): string; id(): string; controlId?: string; contextActions?: IContributionItem[]; extraStyles?: CSSStyleDeclaration; } export interface IContributionItem { id?: string; title?: string; link?: string; image?: string; disabled?: boolean; checked?: boolean; danger?: boolean; warning?: boolean; primary?: boolean; success?: boolean; run?(args?: any): void; items?: IContributionItem[]; } export interface IMenu extends IContributionItem { items: IContributionItem[]; } export declare class ToolbarRenderer { private menu; constructor(menu: IMenu); style: CSSStyleDeclaration; render(host: Element): void; } export declare class DrowpdownMenu { private menu; private setRoles; constructor(menu: IMenu, setRoles?: boolean); render(host: Element): void; } export declare class Context { private menu; constructor(menu: IMenu); render(host: Element): void; } export declare abstract class AbstractComposite implements IControl { private _title; children: IControl[]; protected _element: Element; protected _id: string; id(): string; render(e: Element): void; refresh(): void; protected abstract innerRender(e: Element): Element | void; add(c: IControl): void; remove(c: IControl): void; dispose(): void; setTitle(title: string): void; title(): string; } export declare class Composite extends AbstractComposite { private tagName; constructor(tagName: string); _style: CSSStyleDeclaration; _styleString: string; attrs: any; _className: string; _classNames: string[]; _text: string; addLabel(l: string): Composite; addClassName(c: string): void; style(): CSSStyleDeclaration; withClass(c: string): this; protected innerRender(e: Element): void; refresh(): void; protected renderContent(ch: HTMLElement): void; protected renderChildren(ch: HTMLElement): void; protected extraRender(ch: HTMLElement): void; protected wrap(p: HTMLElement, c?: IControl): HTMLElement; } export declare class WrapComposite extends Composite { wrapElement: string; protected wrap(p: HTMLElement): HTMLElement; } export declare class HorizontalFlex extends Composite { constructor(); wrapStyle: CSSStyleDeclaration; protected wrap(p: HTMLElement): HTMLDivElement; } export declare class VerticalFlex extends Composite { constructor(); wrapStyle: CSSStyleDeclaration; protected wrap(p: HTMLElement): HTMLDivElement; } export declare class Loading extends AbstractComposite { protected innerRender(e: Element): void; } export declare class Label extends AbstractComposite { private content; constructor(title?: string, content?: string); protected innerRender(e: Element): void; } export declare class Accordition extends AbstractComposite { expand(c: IControl): void; protected selectedIndex: number; getSelectedIndex(): number; getSelectedTitle(): string; getSelectedTitleId(): string; expandIndex(index: number): void; getHeader(c: IControl): HTMLElement; disabled: {}; disable(c: IControl): any; enable(c: IControl): any; private bids; private gids; private headings; protected innerRender(e: Element): void; }