import { CellModel, InitModelOf, Status, ValueField } from '../index'; /** * -1 for left, 0 for center and 1 for right. */ export type Alignment = -1 | 0 | 1; export declare class Cell implements CellModel { model: CellModel; cssClass: string; editable: boolean; errorStatus: Status; horizontalAlignment: Alignment; htmlEnabled: boolean; iconId: string; mandatory: boolean; text: string; flowsLeft: boolean; empty: boolean; value: TValue; tooltipText: string; foregroundColor: string; backgroundColor: string; font: string; sortCode: number; field: ValueField; protected _cachedEncodedText: string; constructor(); init(model: InitModelOf): void; protected _init(model: InitModelOf): void; update(model: CellModel): void; setEditable(editable: boolean): void; setMandatory(mandatory: boolean): void; setHorizontalAlignment(hAlign: Alignment): void; setHtmlEnabled(htmlEnabled: boolean): void; setValue(value: TValue): void; setErrorStatus(errorStatus: Status): void; setText(text: string): void; setIconId(iconId: string): void; encodedText(): string; setCssClass(cssClass: string): void; /** * Adds the given css class to {@link Cell#cssClass}. * * @see styles#addCssClass * @param cssClass may contain multiple css classes separated by space. */ addCssClass(cssClass: string): void; /** * Removes the given css class from {@link Cell#cssClass}. * * @see styles#removeCssClass * @param cssClass may contain multiple css classes separated by space. */ removeCssClass(cssClass: string): void; /** * Toggles the given css class in {@link Cell#cssClass}. * * @see styles#toggleCssClass * @param cssClass may contain multiple css classes separated by space. */ toggleCssClass(cssClass: string, condition: boolean): void; /** * Checks whether the css class is contained in {@link Cell#cssClass}. * * @see styles#hasCssClass * @param cssClass may contain multiple css classes separated by space. */ hasCssClass(cssClass: string): boolean; setSortCode(sortCode: number): void; setTooltipText(tooltipText: string): void; setBackgroundColor(color: string): void; setForegroundColor(color: string): void; setFont(font: string): void; } //# sourceMappingURL=Cell.d.ts.map