import { GridIcons } from '@toolbox-web/grid'; import { FC, ReactNode } from 'react'; /** * Context for providing icon overrides to grids. * @internal */ export declare const GridIconContext: import('react').Context | null>; /** * Props for the GridIconProvider component. */ export interface GridIconProviderProps { /** * Icon overrides to provide to all descendant grids. * Only specify icons you want to override - defaults are used for the rest. * * @example * ```tsx * const icons = { * expand: '➕', * collapse: '➖', * sortAsc: '↑', * sortDesc: '↓', * }; * * * * * ``` */ icons: Partial; children: ReactNode; } /** * Provides application-wide icon overrides for all descendant grids. * * Wrap your application (or part of it) with this provider to customize * grid icons across all DataGrid components. * * @example * ```tsx * // App.tsx or main.tsx * import { GridIconProvider } from '@toolbox-web/grid-react'; * * const customIcons = { * expand: '➕', * collapse: '➖', * sortAsc: '↑', * sortDesc: '↓', * filter: '...', * }; * * function App() { * return ( * * * * ); * } * ``` * * Available icons to override: * - `expand` - Expand icon for collapsed items (trees, groups, details) * - `collapse` - Collapse icon for expanded items * - `sortAsc` - Sort ascending indicator * - `sortDesc` - Sort descending indicator * - `sortNone` - Sort neutral/unsorted indicator * - `submenuArrow` - Submenu arrow for context menus * - `dragHandle` - Drag handle icon for reordering * - `toolPanel` - Tool panel toggle icon in toolbar * - `filter` - Filter icon in column headers * - `filterActive` - Filter icon when filter is active * - `print` - Print icon for print button */ export declare const GridIconProvider: FC; /** * Hook to access icon overrides from context. * * @returns The icon overrides from the nearest GridIconProvider, or null if none. * * @example * ```tsx * function MyComponent() { * const icons = useGridIcons(); * console.log('Current expand icon:', icons?.expand); * return
; * } * ``` */ export declare function useGridIcons(): Partial | null; /** * Internal context export for use by DataGrid. * @internal */ export declare const GridIconContextInternal: import('react').Context | null>; //# sourceMappingURL=grid-icon-registry.d.ts.map