import { INode } from '../../node/node.ts'; import { IView } from './view.ts'; export interface IColumn { /** Unique column ID */ id: string; /** Translated column title */ title: string; /** The content of the cell. The element will be appended within */ render: (node: INode, view: IView) => HTMLElement; /** Function used to sort INodes between them */ sort?: (nodeA: INode, nodeB: INode) => number; /** * Custom summary of the column to display at the end of the list. * Will not be displayed if nothing is provided */ summary?: (node: INode[], view: IView) => string; } export declare class Column implements IColumn { private _column; constructor(column: IColumn); get id(): string; get title(): string; get render(): (node: INode, view: IView) => HTMLElement; get sort(): ((nodeA: INode, nodeB: INode) => number) | undefined; get summary(): ((node: INode[], view: IView) => string) | undefined; } /** * Validate a column definition * * @param column - the column to check * @throws {Error} if the column is not valid */ export declare function validateColumn(column: IColumn): void;