import { ViewMode } from '../../../contexts/DataGridContext/types';
import { OnChangeConfig, RowKey } from '../../../types';
/**
 * Saves the view mode (table or cards).
 *
 * ## Purpose
 *
 * Persists the user's preference for the selected view mode.
 * Allows the last used view to be kept on reload when the consumer persists in network cookies.
 *
 * ## Save priority
 *
 * 1. If `onChangeConfig` exists → Saves to network cookies
 * 2. If it does not exist → Nothing is saved (localStorage is not used)
 *
 * ## Key format (reference; persistence is only via callback)
 *
 * `${id}_view_mode` -> 'table' | 'cards'
 * @param id - Unique DataGrid identifier
 * @param viewMode - View mode ('table' | 'cards')
 * @param onChangeConfig - Optional callback to save to network cookies. If not provided, nothing is saved.
 * @example
 * // With network cookies
 * saveViewMode('my-grid', 'cards', onChangeConfig);
 * // Calls: onChangeConfig({ reason: 'viewMode', userConfig: 'cards' })
 *
 * // Without callback: nothing is persisted
 * saveViewMode('my-grid', 'cards');
 */
export declare const saveViewMode: (id: RowKey, viewMode: ViewMode, onChangeConfig?: OnChangeConfig) => void;
//# sourceMappingURL=saveViewMode.d.ts.map