import { UseViewModeParams, UseViewModeReturn } from './types';
/**
 * Hook to manage view mode state (table/cards).
 *
 * ## ViewMode initialization
 *
 * ViewMode is initialized following this precedence order:
 * 1. viewMode prop (controlled mode)
 * 2. defaultConfig from network cookies (via getViewMode)
 * 3. defaultViewMode (developer default)
 * 4. Device fallback (mobile: 'cards', desktop: 'table')
 *
 * ## ViewMode persistence
 *
 * - If `onChangeConfig` is defined → Saves to network cookies
 * - If not defined → Nothing is saved (localStorage is not used)
 *
 * ## Controlled vs uncontrolled mode
 *
 * - **Controlled**: When `viewMode` prop is passed, the parent controls state
 * - **Uncontrolled**: The hook manages state internally and persists via onChangeConfig when defined
 */
export declare const useViewMode: ({ id, viewMode, defaultViewMode, onViewModeChange, onChangeConfig, }: UseViewModeParams) => UseViewModeReturn;
//# sourceMappingURL=useViewMode.d.ts.map