import { ColDef } from 'ag-grid-community'; import { WrapperSlotConfig } from '../cell-renderers/wrapper-cell-renderer.models'; import { CoarGridColumnBuilder } from './coar-grid-column-builder'; /** * Wraps an existing column builder and adds left/right slot decorations. * * The inner builder's ColDef is preserved in full (field, sort, filter, edit, * valueFormatter, comparator, quickFilter, …); only its `cellRenderer` is * swapped for `WrapperCellRenderer`, which renders the left slot → inner * renderer → right slot. * * @example * ```ts * CoarGridBuilder.create().columns([ * (col) => col * .wrap(col.field('name').header('Name').flex(1).sortable()) * .left({ icon: (r) => r.starred ? 'star-filled' : 'star-outline', onClick: toggle }) * .right({ component: UnreadBadge, params: (r) => ({ count: r.unread }) }), * ]); * ``` */ export declare class CoarGridWrapperColumnBuilder { #private; constructor(inner: CoarGridColumnBuilder); /** Configure the left-hand slot. */ left(config: WrapperSlotConfig): this; /** Configure the right-hand slot. */ right(config: WrapperSlotConfig): this; /** Build the AG Grid ColDef with the wrapped cell renderer. */ build(): ColDef; } //# sourceMappingURL=coar-grid-wrapper-column-builder.d.ts.map