import { type VariableViewMode } from "./store"; import { getVariableViewMode } from "../extensions/Variable/variable-storage.utils"; interface VariableViewModeSyncProps { variableViewMode: VariableViewMode; } /** * Syncs the variableViewMode prop to editor storage and dispatches a transaction * to notify VariableView components to re-render. * * Also syncs the variablesEnabled state to the VariableInputRule extension storage, * disabling the {{ input rule when the variables prop is not provided. * * This component should be placed inside an EditorProvider. */ export declare const VariableViewModeSync: ({ variableViewMode }: VariableViewModeSyncProps) => null; /** * Hook to get the current variable view mode from the editor. * Useful for reading the variable view mode outside of VariableView components. * * @example * ```typescript * const { editor } = useCurrentEditor(); * const viewMode = useVariableViewMode(editor); * ``` */ export declare function useVariableViewMode(editor: Parameters[0]): VariableViewMode; export {};