import type { ReactNode } from 'react'; import type { ColDef } from 'ag-grid-community'; /** * Adds an info affordance to a column header. * * ```tsx * const columns = [ * withHeaderInfo( * { field: 'net', headerName: 'Net revenue', type: 'rightAligned' }, * , * ), * ]; * ``` * * Keyboard: Tab from the focused header cell moves to the tip; Shift+Tab * returns; clicking or pressing keys on the tip never sorts the column. * Not combinable with a custom `headerComponent` on the same column. Any * `headerComponentParams` and `suppressHeaderKeyboardEvent` already on the * column are kept. * * @param colDef - the leaf column definition * @param info - the node to show after the header text, or a function * returning it (use the function form when the node changes per render) */ export declare function withHeaderInfo(colDef: ColDef, info: ReactNode | (() => ReactNode)): ColDef; //# sourceMappingURL=header-info.d.ts.map