import * as p from "../../../core/properties"; import { RoundingFunction } from "../../../core/enums"; import { Model } from "../../../model"; export declare namespace CellFormatter { type Attrs = p.AttrsOf; type Props = Model.Props; } export interface CellFormatter extends CellFormatter.Attrs { } export declare abstract class CellFormatter extends Model { properties: CellFormatter.Props; constructor(attrs?: Partial); doFormat(_row: any, _cell: any, value: any, _columnDef: any, _dataContext: any): string; } export declare namespace StringFormatter { type Attrs = p.AttrsOf; type Props = CellFormatter.Props & { font_style: p.FontStyleSpec; text_align: p.TextAlignSpec; text_color: p.ColorSpec; background_color: p.ColorSpec; nan_format: p.Property; null_format: p.Property; }; } export interface StringFormatter extends StringFormatter.Attrs { } export declare class StringFormatter extends CellFormatter { properties: StringFormatter.Props; constructor(attrs?: Partial); doFormat(_row: any, _cell: any, value: any, _columnDef: any, dataContext: any): string; } export declare namespace ScientificFormatter { type Attrs = p.AttrsOf; type Props = StringFormatter.Props & { precision: p.Property; power_limit_high: p.Property; power_limit_low: p.Property; }; } export interface ScientificFormatter extends ScientificFormatter.Attrs { } export declare class ScientificFormatter extends StringFormatter { properties: ScientificFormatter.Props; constructor(attrs?: Partial); get scientific_limit_low(): number; get scientific_limit_high(): number; doFormat(row: any, cell: any, value: any, columnDef: any, dataContext: any): string; } export declare namespace NumberFormatter { type Attrs = p.AttrsOf; type Props = StringFormatter.Props & { format: p.Property; language: p.Property; rounding: p.Property; }; } export interface NumberFormatter extends NumberFormatter.Attrs { } export declare class NumberFormatter extends StringFormatter { properties: NumberFormatter.Props; constructor(attrs?: Partial); doFormat(row: any, cell: any, value: any, columnDef: any, dataContext: any): string; } export declare namespace BooleanFormatter { type Attrs = p.AttrsOf; type Props = CellFormatter.Props & { icon: p.Property; }; } export interface BooleanFormatter extends BooleanFormatter.Attrs { } export declare class BooleanFormatter extends CellFormatter { properties: BooleanFormatter.Props; constructor(attrs?: Partial); doFormat(_row: any, _cell: any, value: any, _columnDef: any, _dataContext: any): string; } export declare namespace DateFormatter { type Attrs = p.AttrsOf; type Props = StringFormatter.Props & { format: p.Property; }; } export interface DateFormatter extends DateFormatter.Attrs { } export declare class DateFormatter extends StringFormatter { properties: DateFormatter.Props; constructor(attrs?: Partial); getFormat(): string | undefined; doFormat(row: any, cell: any, value: unknown, columnDef: any, dataContext: any): string; } export declare namespace HTMLTemplateFormatter { type Attrs = p.AttrsOf; type Props = CellFormatter.Props & { template: p.Property; }; } export interface HTMLTemplateFormatter extends HTMLTemplateFormatter.Attrs { } export declare class HTMLTemplateFormatter extends CellFormatter { properties: HTMLTemplateFormatter.Props; constructor(attrs?: Partial); doFormat(_row: any, _cell: any, value: any, _columnDef: any, dataContext: any): string; } //# sourceMappingURL=cell_formatters.d.ts.map