import React from 'react'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { EditorAppearance } from '../types'; import type { ToolbarDocking } from '../user-preferences'; export type EditorToolbarContextType = { editorAppearance?: EditorAppearance; editorToolbarDockingPreference?: ToolbarDocking; editorView: EditorView | null; editorViewMode?: 'edit' | 'view'; isOffline?: boolean; }; /** * Access editor specific config and state within a toolbar component */ export declare const useEditorToolbar: () => EditorToolbarContextType; type EditorToolbarProviderProps = { children: React.ReactNode; } & EditorToolbarContextType; export declare const EditorToolbarProvider: ({ children, editorView, editorAppearance, editorViewMode, editorToolbarDockingPreference, isOffline, }: EditorToolbarProviderProps) => React.JSX.Element; export {};