import { ColorMode } from '@xyflow/react'; export interface UseFlowThemeReturn { /** CSS variables to spread on the ReactFlow wrapper style. */ themeVars: Record; /** Resolved React Flow colorMode derived from the live theme mode. */ colorMode: ColorMode; } /** * Reads the active Exotel theme mode and returns: * 1. A CSS-variable map to apply on the ReactFlow wrapper, and * 2. The React Flow `colorMode` matching the current theme mode. * * Reads `useThemeMode()`, not `theme.palette.mode` — under this repo's * `extendTheme` + `colorSchemeSelector: "class"` CSS-vars setup, * `theme.palette.mode` is frozen to the build-time default and never reflects the * user's actual toggle (same trap `nodeRegistry/useNodeAccent.ts` documents and * avoids). `useThemeMode()` can return `'system'`, which is resolved explicitly * against `prefers-color-scheme` rather than assumed to fall into the light branch. */ export declare function useFlowTheme(): UseFlowThemeReturn;