import { type ReactNode } from 'react'; import type { CustomCellRendererProps } from 'ag-grid-react'; export interface ToggleCellRendererParams { /** * Fires with the row and the new target value. May return a `Promise` — * if it rejects, the consumer is expected to revert the underlying value * and flash the row with `data-table-row-error` (return that row class * from `getRowClass`). Use `onError` below to be notified inside this * renderer. */ onToggle: (data: TData, newValue: boolean) => void | Promise; /** * Optional reject hook. Fires when the `onToggle` promise rejects, with * the row and the error. The button auto-disables during the in-flight * promise and re-enables on either settle. */ onError?: (data: TData, error: unknown) => void; /** Icon shown when the current value is truthy. */ trueIcon?: ReactNode; /** Icon shown when the current value is falsy. */ falseIcon?: ReactNode; /** Extra classes applied to the "on" icon — defaults to success token. */ trueClass?: string; /** Extra classes applied to the "off" icon. */ falseClass?: string; /** Accessible label. Falls back to the default on/off announcements. */ label?: string; } export declare function ToggleCellRenderer(props: CustomCellRendererProps & ToggleCellRendererParams): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=toggle-cell-renderer.d.ts.map