import { DataItem } from "../metadata/data-item";
import { ColumnModel } from "./column-model";

/**
 * Provides a DataContext property, which contains data for displaying information in the grid columns
 *
 * @export
 * @interface DataContextComponent
 */
export declare interface DataContextComponent {
    /**
     * The current data context
     *
     * @type {DataContext}
     * @memberof DataContextComponent
     */
    context: DataContext;
}

/**
 * Provides data used to display information in the grid columns
 *
 * @export
 * @interface DataContext
 */
export declare interface DataContext {
    /**
     * The current data item
     *
     * @type {DataItem}
     * @memberof DataContext
     */
    dataItem: DataItem;

    /**
     * The column model
     *
     * @type {ColumnModel}
     * @memberof DataContext
     */
    model: ColumnModel;
}
